| Package | Description |
|---|---|
| com.upokecenter.text |
| Modifier and Type | Field and Description |
|---|---|
static ICharacterEncoding |
Encodings.UTF8
Character encoding object for the UTF-8 character encoding, which represents
each code point in the universal character set using 1 to 4 bytes.
|
| Modifier and Type | Method and Description |
|---|---|
static ICharacterEncoding |
Encodings.GetEncoding(String name)
Returns a character encoding from the given name.
|
static ICharacterEncoding |
Encodings.GetEncoding(String name,
boolean forEmail)
Returns a character encoding from the given name.
|
static ICharacterEncoding |
Encodings.GetEncoding(String name,
boolean forEmail,
boolean allowReplacement)
Returns a character encoding from the given name.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
Encodings.DecodeToString(ICharacterEncoding enc,
byte[] bytes)
Reads a byte array from a data source and converts the bytes from a given
encoding to a text string.
|
static String |
Encodings.DecodeToString(ICharacterEncoding enc,
byte[] bytes,
int offset,
int length)
Reads a portion of a byte array from a data source and converts the bytes
from a given encoding to a text string.
|
static String |
Encodings.DecodeToString(ICharacterEncoding encoding,
IByteReader input)
Reads bytes from a data source and converts the bytes from a given encoding
to a text string.
|
static String |
Encodings.DecodeToString(ICharacterEncoding enc,
InputStream input)
Not documented yet.
|
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 byte[] |
Encodings.EncodeToBytes(String str,
ICharacterEncoding enc)
Reads Unicode characters from a text string 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 void |
Encodings.EncodeToWriter(String str,
ICharacterEncoding enc,
IWriter writer)
Converts a text string to bytes and writes the bytes to an output byte
writer.
|
static void |
Encodings.EncodeToWriter(String str,
ICharacterEncoding enc,
OutputStream output)
Converts a text string to bytes and writes the bytes to an output data
stream.
|
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 byte[] |
Encodings.StringToBytes(ICharacterEncoding encoding,
String str)
Converts a text string to a byte array encoded in a given character
encoding.
|
Encoding for Java documentation, generated in 2017.