Package org.apache.juneau.uon
Class UonReader
java.lang.Object
java.io.Reader
org.apache.juneau.parser.ParserReader
org.apache.juneau.uon.UonReader
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Readable
,Positionable
Same functionality as %xx escape sequences.
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:
'&' ->'' '=' ->''
See Also:
-
Field Summary
Fields inherited from class org.apache.juneau.parser.ParserReader
r
-
Constructor Summary
-
Method Summary
Methods inherited from class org.apache.juneau.parser.ParserReader
close, delete, delete, getMarked, getMarked, getPosition, mark, parseNumberString, peek, peekSkipWs, read, read, readCodePoint, readSkipWs, replace, replace
Methods inherited from class java.io.Reader
mark, markSupported, nullReader, read, read, ready, reset, skip, transferTo
-
Constructor Details
-
UonReader
Constructor.- Parameters:
pipe
- The parser input.decodeChars
- Whether the input is URL-encoded.- Throws:
IOException
- Thrown by underlying stream.
-
-
Method Details
-
read
Description copied from class:ParserReader
Subclasses can override this method to provide additional filtering.Default implementation simply calls the same method on the underlying reader.
- Overrides:
read
in classParserReader
- Throws:
IOException
-
unread
Description copied from class:ParserReader
Pushes the last read character back into the stream.- Overrides:
unread
in classParserReader
- Returns:
- This object.
- Throws:
IOException
- If a problem occurred trying to read from the reader.
-