asia.redact.bracket.util
Class AsciiToNativeFilterReader

java.lang.Object
  extended by java.io.Reader
      extended by java.io.FilterReader
          extended by 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.


Field Summary
private  char[] trailChars
           
 
Fields inherited from class java.io.FilterReader
in
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
AsciiToNativeFilterReader(Reader in)
           
 
Method Summary
 int read()
           
 int read(char[] buf, int off, int len)
           
 
Methods inherited from class java.io.FilterReader
close, mark, markSupported, ready, reset, skip
 
Methods inherited from class java.io.Reader
read, read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

trailChars

private char[] trailChars
Constructor Detail

AsciiToNativeFilterReader

public AsciiToNativeFilterReader(Reader in)
Method Detail

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.