| org.apache.tools.ant.filters.BaseFilterReader org.apache.tools.ant.filters.BaseParamFilterReader org.apache.tools.ant.filters.EscapeUnicode
EscapeUnicode | public class EscapeUnicode extends BaseParamFilterReader implements ChainableReader(Code) | | This method converts non-latin characters to unicode escapes.
Useful to load properties containing non latin
Example:
<escapeunicode>
Or:
<filterreader
classname="org.apache.tools.ant.filters.EscapeUnicode"/>
since: Ant 1.6 |
Method Summary | |
final public Reader | chain(Reader rdr) Creates a new EscapeUnicode using the passed in
Reader for instantiation.
Parameters: rdr - A Reader object providing the underlying stream.Must not be null . | final public int | read() Returns the next character in the filtered stream, converting non latin
characters to unicode escapes. |
EscapeUnicode | public EscapeUnicode(Reader in)(Code) | | Creates a new filtered reader.
Parameters: in - A Reader object providing the underlying stream.Must not be null . |
chain | final public Reader chain(Reader rdr)(Code) | | Creates a new EscapeUnicode using the passed in
Reader for instantiation.
Parameters: rdr - A Reader object providing the underlying stream.Must not be null . a new filter based on this configuration, but filteringthe specified reader |
read | final public int read() throws IOException(Code) | | Returns the next character in the filtered stream, converting non latin
characters to unicode escapes.
the next character in the resulting stream, or -1if the end of the resulting stream has been reached exception: IOException - if the underlying stream throwsan IOException during reading |
|
|