public final class UnicodeCharacterReader extends Object implements UnicodeCharacterReaderPushBackType
UnicodeCharacterReaderType.| Constructor and Description |
|---|
UnicodeCharacterReader(Reader r) |
| Modifier and Type | Method and Description |
|---|---|
static UnicodeCharacterReaderPushBackType |
newReader(Reader r)
Construct a new character reader from the given reader.
|
void |
pushCodePoint(int c)
Push the character
c to the stream. |
int |
readCodePoint() |
public UnicodeCharacterReader(Reader r)
public static UnicodeCharacterReaderPushBackType newReader(Reader r)
r - The original readerpublic void pushCodePoint(int c)
UnicodeCharacterReaderPushBackTypec to the stream.pushCodePoint in interface UnicodeCharacterReaderPushBackTypec - The character to be pushedpublic int readCodePoint()
throws IOException
readCodePoint in interface UnicodeCharacterReaderType-1 at end-of-stream.IOException - On I/O errorsInvalidSurrogatePair - If the character received after a high surrogate was not a low
surrogate.MissingLowSurrogate - If an end-of-stream was encountered before the low surrogate of
a surrogate pair was received.OrphanLowSurrogate - If a low surrogate was received outside of a high/low surrogate
pair.Copyright © 2015 <code@io7m.com> http://io7m.com