| Package | Description |
|---|---|
| com.upokecenter.text |
| Modifier and Type | Class and Description |
|---|---|
class |
CharacterReader
A general-purpose character input for reading text from byte streams and
text strings.
|
| Modifier and Type | Method and Description |
|---|---|
static ICharacterInput |
Encodings.GetDecoderInput(ICharacterEncoding encoding,
IByteReader stream)
Converts a character encoding into a character input stream, given a
streamable source of bytes.
|
static ICharacterInput |
Encodings.GetDecoderInput(ICharacterEncoding encoding,
InputStream input)
Not documented yet.
|
static ICharacterInput |
Encodings.GetDecoderInputSkipBom(ICharacterEncoding encoding,
IByteReader stream)
Converts a character encoding into a character input stream, given a
streamable source of bytes.
|
static ICharacterInput |
Encodings.GetDecoderInputSkipBom(ICharacterEncoding encoding,
InputStream input)
Converts a character encoding into a character input stream, given a
readable data stream.
|
static ICharacterInput |
Encodings.StringToInput(String str)
Converts a text string to a character input.
|
static ICharacterInput |
Encodings.StringToInput(String str,
int offset,
int length)
Converts a portion of a text string to a character input.
|
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
Encodings.EncodeToBytes(ICharacterInput input,
ICharacterEncoder encoder)
Reads Unicode characters from a character input and writes them to a byte
array encoded using a given character encoding.
|
static byte[] |
Encodings.EncodeToBytes(ICharacterInput input,
ICharacterEncoding encoding)
Reads Unicode characters from a character input and writes them to a byte
array encoded using the given character encoder.
|
static void |
Encodings.EncodeToWriter(ICharacterInput input,
ICharacterEncoder encoder,
IWriter writer)
Reads Unicode characters from a character input and writes them to a byte
array encoded in a given character encoding.
|
static void |
Encodings.EncodeToWriter(ICharacterInput input,
ICharacterEncoder encoder,
OutputStream output)
Reads Unicode characters from a character input and writes them to a byte
array encoded in a given character encoding.
|
static void |
Encodings.EncodeToWriter(ICharacterInput input,
ICharacterEncoding encoding,
IWriter writer)
Reads Unicode characters from a character input and writes them to a byte
array encoded using the given character encoder.
|
static void |
Encodings.EncodeToWriter(ICharacterInput input,
ICharacterEncoding encoding,
OutputStream output)
Reads Unicode characters from a character input and writes them to a byte
array encoded using the given character encoder.
|
static String |
Encodings.InputToString(ICharacterInput reader)
Reads Unicode characters from a character input and converts them to a text
string.
|
Encoding for Java documentation, generated in 2017.