Skip navigation links
A C D E G I R S T U W 

A

ArrayWriter - Class in com.upokecenter.util
An array of bytes that grows as needed.
ArrayWriter() - Constructor for class com.upokecenter.util.ArrayWriter
Initializes a new instance of the com.upokecenter.ArrayWriter class with a default buffer size.
ArrayWriter(int) - Constructor for class com.upokecenter.util.ArrayWriter
Initializes a new instance of the com.upokecenter.ArrayWriter class with the given initial buffer size.

C

CharacterReader - Class in com.upokecenter.text
A general-purpose character input for reading text from byte streams and text strings.
CharacterReader(String) - Constructor for class com.upokecenter.text.CharacterReader
Initializes a new instance of the CharacterReader class using a Unicode 16-bit string; if the string begins with a byte-order mark (U + FEFF), it won't be skipped, and any unpaired surrogate code points (U+D800 to U + DFFF) in the string are replaced with replacement characters (U + FFFD).
CharacterReader(String, boolean) - Constructor for class com.upokecenter.text.CharacterReader
Initializes a new instance of the CharacterReader class using a Unicode 16-bit string; any unpaired surrogate code points (U + D800 to U + DFFF) in the string are replaced with replacement characters (U + FFFD).
CharacterReader(String, boolean, boolean) - Constructor for class com.upokecenter.text.CharacterReader
Initializes a new instance of the CharacterReader class using a Unicode 16-bit string.
CharacterReader(String, int, int) - Constructor for class com.upokecenter.text.CharacterReader
Initializes a new instance of the CharacterReader class.
CharacterReader(String, int, int, boolean, boolean) - Constructor for class com.upokecenter.text.CharacterReader
Initializes a new instance of the CharacterReader class.
CharacterReader(InputStream) - Constructor for class com.upokecenter.text.CharacterReader
Initializes a new instance of the CharacterReader class; will read the stream as UTF-8, skip the byte-order mark (U + FEFF) if it appears first in the stream, and replace invalid byte sequences with replacement characters (U + FFFD).
CharacterReader(InputStream, int, boolean) - Constructor for class com.upokecenter.text.CharacterReader
Initializes a new instance of the CharacterReader class; will skip the byte-order mark (U + FEFF) if it appears first in the stream.
CharacterReader(InputStream, int) - Constructor for class com.upokecenter.text.CharacterReader
Initializes a new instance of the CharacterReader class; will skip the byte-order mark (U + FEFF) if it appears first in the stream and replace invalid byte sequences with replacement characters (U + FFFD).
CharacterReader(InputStream, int, boolean, boolean) - Constructor for class com.upokecenter.text.CharacterReader
Initializes a new instance of the CharacterReader class.
Clear() - Method in class com.upokecenter.util.ArrayWriter
Offers a fast way to reset the length of the array writer's data to 0.
com.upokecenter.text - package com.upokecenter.text
 
com.upokecenter.util - package com.upokecenter.util
 

D

DataIO - Class in com.upokecenter.util
Convenience class that contains static methods for wrapping byte arrays and streams into byte readers and byte writers.
DecodeToString(ICharacterEncoding, IByteReader) - Static method in class com.upokecenter.text.Encodings
Reads bytes from a data source and converts the bytes from a given encoding to a text string.
DecodeToString(ICharacterEncoding, InputStream) - Static method in class com.upokecenter.text.Encodings
Not documented yet.
DecodeToString(ICharacterEncoding, byte[]) - Static method in class com.upokecenter.text.Encodings
Reads a byte array from a data source and converts the bytes from a given encoding to a text string.
DecodeToString(ICharacterEncoding, byte[], int, int) - Static method in class com.upokecenter.text.Encodings
Reads a portion of a byte array from a data source and converts the bytes from a given encoding to a text string.

E

Encode(int, IWriter) - Method in interface com.upokecenter.text.ICharacterEncoder
Converts a Unicode code point to bytes and writes the bytes to an output stream.
EncodeToBytes(ICharacterInput, ICharacterEncoding) - Static method in class com.upokecenter.text.Encodings
Reads Unicode characters from a character input and writes them to a byte array encoded using the given character encoder.
EncodeToBytes(ICharacterInput, ICharacterEncoder) - Static method in class com.upokecenter.text.Encodings
Reads Unicode characters from a character input and writes them to a byte array encoded using a given character encoding.
EncodeToBytes(String, ICharacterEncoding) - Static method in class com.upokecenter.text.Encodings
Reads Unicode characters from a text string and writes them to a byte array encoded in a given character encoding.
EncodeToWriter(ICharacterInput, ICharacterEncoding, IWriter) - Static method in class com.upokecenter.text.Encodings
Reads Unicode characters from a character input and writes them to a byte array encoded using the given character encoder.
EncodeToWriter(ICharacterInput, ICharacterEncoder, IWriter) - Static method in class com.upokecenter.text.Encodings
Reads Unicode characters from a character input and writes them to a byte array encoded in a given character encoding.
EncodeToWriter(String, ICharacterEncoding, IWriter) - Static method in class com.upokecenter.text.Encodings
Converts a text string to bytes and writes the bytes to an output byte writer.
EncodeToWriter(ICharacterInput, ICharacterEncoding, OutputStream) - Static method in class com.upokecenter.text.Encodings
Reads Unicode characters from a character input and writes them to a byte array encoded using the given character encoder.
EncodeToWriter(ICharacterInput, ICharacterEncoder, OutputStream) - Static method in class com.upokecenter.text.Encodings
Reads Unicode characters from a character input and writes them to a byte array encoded in a given character encoding.
EncodeToWriter(String, ICharacterEncoding, OutputStream) - Static method in class com.upokecenter.text.Encodings
Converts a text string to bytes and writes the bytes to an output data stream.
Encodings - Class in com.upokecenter.text
Contains methods for converting text from one character encoding to another.

G

GetDecoder() - Method in interface com.upokecenter.text.ICharacterEncoding
Creates a decoder for this character encoding with initial state.
GetDecoderInput(ICharacterEncoding, IByteReader) - Static method in class com.upokecenter.text.Encodings
Converts a character encoding into a character input stream, given a streamable source of bytes.
GetDecoderInput(ICharacterEncoding, InputStream) - Static method in class com.upokecenter.text.Encodings
Not documented yet.
GetDecoderInputSkipBom(ICharacterEncoding, IByteReader) - Static method in class com.upokecenter.text.Encodings
Converts a character encoding into a character input stream, given a streamable source of bytes.
GetDecoderInputSkipBom(ICharacterEncoding, InputStream) - Static method in class com.upokecenter.text.Encodings
Converts a character encoding into a character input stream, given a readable data stream.
GetEncoder() - Method in interface com.upokecenter.text.ICharacterEncoding
Creates an encoder for this character encoding with initial state.
GetEncoding(String) - Static method in class com.upokecenter.text.Encodings
Returns a character encoding from the given name.
GetEncoding(String, boolean) - Static method in class com.upokecenter.text.Encodings
Returns a character encoding from the given name.
GetEncoding(String, boolean, boolean) - Static method in class com.upokecenter.text.Encodings
Returns a character encoding from the given name.

I

IByteReader - Interface in com.upokecenter.util
A generic interface for reading data one byte at a time.
IByteWriter - Interface in com.upokecenter.util
A generic interface for writing bytes of data.
ICharacterDecoder - Interface in com.upokecenter.text
Defines a method that can be implemented by classes that convert a stream of bytes to Unicode code points.
ICharacterEncoder - Interface in com.upokecenter.text
Defines a method that can be implemented by classes that convert Unicode code points to bytes.
ICharacterEncoding - Interface in com.upokecenter.text
 
ICharacterInput - Interface in com.upokecenter.text
An interface for reading Unicode code points from a data source.
InputToString(ICharacterInput) - Static method in class com.upokecenter.text.Encodings
Reads Unicode characters from a character input and converts them to a text string.
IReader - Interface in com.upokecenter.util
A generic interface for reading bytes of data from a data source.
IWriter - Interface in com.upokecenter.util
A generic interface for writing bytes of data.

R

Read(int[], int, int) - Method in class com.upokecenter.text.CharacterReader
Reads a series of code points from a Unicode stream or a string.
Read(int[], int, int) - Method in interface com.upokecenter.text.ICharacterInput
Reads a sequence of Unicode code points from a data source.
read() - Method in interface com.upokecenter.util.IByteReader
Reads a byte from the data source.
Read(byte[], int, int) - Method in interface com.upokecenter.util.IReader
Reads a portion of a byte array from the data source.
ReadChar() - Method in class com.upokecenter.text.CharacterReader
Reads the next character from a Unicode stream or a string.
ReadChar(IByteReader) - Method in interface com.upokecenter.text.ICharacterDecoder
Reads bytes from an input transform until a Unicode code point is decoded or until the end of the stream is reached.
ReadChar() - Method in interface com.upokecenter.text.ICharacterInput
Reads a Unicode code point from a data source.
ResolveAlias(String) - Static method in class com.upokecenter.text.Encodings
Resolves a character encoding's name to a standard form.
ResolveAliasForEmail(String) - Static method in class com.upokecenter.text.Encodings
Resolves a character encoding's name to a canonical form, using rules more suitable for email.

S

StringToBytes(ICharacterEncoding, String) - Static method in class com.upokecenter.text.Encodings
Converts a text string to a byte array encoded in a given character encoding.
StringToBytes(ICharacterEncoder, String) - Static method in class com.upokecenter.text.Encodings
Converts a text string to a byte array using the given character encoder.
StringToInput(String) - Static method in class com.upokecenter.text.Encodings
Converts a text string to a character input.
StringToInput(String, int, int) - Static method in class com.upokecenter.text.Encodings
Converts a portion of a text string to a character input.

T

ToArray() - Method in class com.upokecenter.util.ArrayWriter
Generates an array of all bytes written so far to it.
ToByteReader(byte[], int, int) - Static method in class com.upokecenter.util.DataIO
Deprecated.
Use ToReader instead.
ToByteReader(InputStream) - Static method in class com.upokecenter.util.DataIO
Deprecated.
Use ToReader instead.
ToByteReader(byte[]) - Static method in class com.upokecenter.util.DataIO
Deprecated.
Use ToReader instead.
ToReader(byte[]) - Static method in class com.upokecenter.util.DataIO
Wraps a byte array into a byte reader.
ToReader(byte[], int, int) - Static method in class com.upokecenter.util.DataIO
Wraps a portion of a byte array into a byte reader object.
ToReader(InputStream) - Static method in class com.upokecenter.util.DataIO
Wraps an input stream into a reader object.
ToWriter(OutputStream) - Static method in class com.upokecenter.util.DataIO
Wraps an output stream into a writer object.
ToWriter(IByteWriter) - Static method in class com.upokecenter.util.DataIO
Wraps a byte writer (one that only implements a ReadByte method) to a writer (one that also implements a three-parameter Read method.)

U

UTF8 - Static variable in class com.upokecenter.text.Encodings
Character encoding object for the UTF-8 character encoding, which represents each code point in the universal character set using 1 to 4 bytes.

W

write(int) - Method in class com.upokecenter.util.ArrayWriter
Writes an 8-bit byte to the array.
write(byte[], int, int) - Method in class com.upokecenter.util.ArrayWriter
Writes a series of bytes to the array.
write(int) - Method in interface com.upokecenter.util.IByteWriter
Writes an 8-bit byte to a data source.
write(byte[], int, int) - Method in interface com.upokecenter.util.IWriter
Writes a portion of a byte array to the data source.
A C D E G I R S T U W 
Skip navigation links

Encoding for Java documentation, generated in 2017.