public final class UonReader extends ParserReader
ParserReader except automatically decoded Escape sequences are assumed to be encoded UTF-8. Extended Unicode (>က0) is supported.
If decoding is enabled, the following character replacements occur so that boundaries are not lost:
r| Constructor and Description |
|---|
UonReader(ParserPipe pipe,
boolean decodeChars)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
read(char[] cbuf,
int off,
int len)
Subclasses can override this method to provide additional filtering.
|
UonReader |
unread()
Pushes the last read character back into the stream.
|
close, delete, delete, getMarked, getMarked, getPosition, mark, peek, peekSkipWs, read, read, readCodePoint, readSkipWs, replace, replacepublic UonReader(ParserPipe pipe, boolean decodeChars) throws IOException
pipe - The parser input.decodeChars - Whether the input is URL-encoded.IOException - Thrown by underlying stream.public final int read(char[] cbuf, int off, int len) throws IOException
ParserReaderDefault implementation simply calls the same method on the underlying reader.
read in class ParserReaderIOExceptionpublic final UonReader unread() throws IOException
ParserReaderunread in class ParserReaderIOException - If a problem occurred trying to read from the reader.Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.