asia.redact.bracket.util
Class AsciiToNativeFilterReader
java.lang.Object
java.io.Reader
java.io.FilterReader
asia.redact.bracket.util.AsciiToNativeFilterReader
- All Implemented Interfaces:
- Closeable, Readable
public class AsciiToNativeFilterReader
- extends FilterReader
This FilterReader class processes a sequence of characters from
a source stream containing a mixture of 7-bit ASCII data and
'back-tick U' escaped sequences representing characters which have
the possibility of being encoded in a user specified encoding
The filter relies on knowing the target encoding and makes a
determination as to whether a given supplied character in its
source character stream can be encoded in the target encoding.
If not, it is remains in its back-tick U escaped form.
|
Method Summary |
int |
read()
|
int |
read(char[] buf,
int off,
int len)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
trailChars
private char[] trailChars
AsciiToNativeFilterReader
public AsciiToNativeFilterReader(Reader in)
read
public int read(char[] buf,
int off,
int len)
throws IOException
- Overrides:
read in class FilterReader
- Throws:
IOException
read
public int read()
throws IOException
- Overrides:
read in class FilterReader
- Throws:
IOException
Copyright © 2011-2013 David R. Smith. All Rights Reserved.