com.upokecenter.text.CharacterReader

com.upokecenter.text.CharacterReader

public final class CharacterReader extends Object implements ICharacterInput

A general-purpose character input for reading text from byte streams and text strings. When reading byte streams, this class supports the UTF-8 character encoding by default, but can be configured to support UTF-16 and UTF-32 as well.

Constructors

Methods

Method Details

Read

public int Read(int[] chars, int index, int length)

Reads a series of code points from a Unicode stream or a string.

Specified by:

Parameters:

Returns:

Throws:

ReadChar

public int ReadChar()

Reads the next character from a Unicode stream or a string.

Specified by:

Returns:

Back to Encoding start page.