public final class UonReader extends ParserReader
ParserReader
except automatically decoded %xx
escape sequences.
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, getColumn, getLine, getLocation, getMarked, getMarked, getPipe, mark, peek, peekSkipWs, read, read, readCodePoint, readSkipWs, replace, replace
public UonReader(ParserPipe pipe, boolean decodeChars) throws Exception
pipe
- The parser input.decodeChars
- Whether the input is URL-encoded.Exception
public final int read(char[] cbuf, int off, int len) throws IOException
ParserReader
Default implementation simply calls the same method on the underlying reader.
read
in class ParserReader
IOException
public final UonReader unread() throws IOException
ParserReader
unread
in class ParserReader
IOException
- If a problem occurred trying to read from the reader.Copyright © 2018 Apache. All rights reserved.