Package com.io7m.jeucreader
Interface UnicodeCharacterReaderType
- All Known Subinterfaces:
UnicodeCharacterReaderPushBackType
- All Known Implementing Classes:
UnicodeCharacterReader
public interface UnicodeCharacterReaderType
An interface that provides unicode characters one at a time.
-
Method Summary
-
Method Details
-
readCodePoint
int readCodePoint() throws IOException, InvalidSurrogatePair, MissingLowSurrogate, OrphanLowSurrogate- Returns:
- A single unicode code point, or
-1at end-of-stream. - Throws:
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.
-