org.teatrove.tea.io
Class UnicodeReader

java.lang.Object
  extended by java.io.Reader
      extended by java.io.FilterReader
          extended by org.teatrove.trove.io.PositionReader
              extended by org.teatrove.tea.io.PositionReader
                  extended by org.teatrove.tea.io.EscapeReader
                      extended by org.teatrove.tea.io.UnicodeReader
All Implemented Interfaces:
Closeable, Readable

Deprecated. Moved to org.teatrove.trove.io package.

public class UnicodeReader
extends EscapeReader

This reader handles unicode escapes in a character stream as defined by The Java Language Specification.

A unicode escape consists of six characters: '\' and 'u' followed by four hexadecimal digits. If the format of the escape is not correct, then the escape is unprocessed. To prevent a correctly formatted unicode escape from being processed, preceed it with another '\'.

Author:
Brian S O'Neill

Field Summary
 
Fields inherited from class org.teatrove.tea.io.EscapeReader
mEscapesEnabled, mSource
 
Fields inherited from class org.teatrove.trove.io.PositionReader
mPosition, mPosReader
 
Fields inherited from class java.io.FilterReader
in
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
UnicodeReader(Reader source)
          Deprecated. A UnicodeReader needs an underlying source Reader.
 
Method Summary
static void main(String[] arg)
          Deprecated.  
 int read()
          Deprecated.  
 
Methods inherited from class org.teatrove.tea.io.EscapeReader
getNextPosition, getOriginalSource, isEscapesEnabled, setEscapesEnabled
 
Methods inherited from class org.teatrove.trove.io.PositionReader
close, read
 
Methods inherited from class java.io.FilterReader
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
 

Constructor Detail

UnicodeReader

public UnicodeReader(Reader source)
Deprecated. 
A UnicodeReader needs an underlying source Reader.

Parameters:
source - the source PositionReader
Method Detail

read

public int read()
         throws IOException
Deprecated. 
Overrides:
read in class PositionReader
Throws:
IOException

main

public static void main(String[] arg)
                 throws Exception
Deprecated. 
Throws:
Exception


Copyright © 1997-2012 TeaTrove.org. All Rights Reserved.