com.go.trove.io
Class UnicodeReader

java.lang.Object
  |
  +--java.io.Reader
        |
        +--java.io.FilterReader
              |
              +--com.go.trove.io.PositionReader
                    |
                    +--com.go.trove.io.EscapeReader
                          |
                          +--com.go.trove.io.UnicodeReader

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 '\'.

Version:
20 , 12/11/00
Author:
Brian S O'Neill

Fields inherited from class com.go.trove.io.EscapeReader
mEscapesEnabled, mSource
 
Fields inherited from class com.go.trove.io.PositionReader
mPosition, mPosReader
 
Fields inherited from class java.io.FilterReader
in
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
UnicodeReader(java.io.Reader source)
          A UnicodeReader needs an underlying source Reader.
 
Method Summary
static void main(java.lang.String[] arg)
           
 int read()
           
 
Methods inherited from class com.go.trove.io.EscapeReader
getNextPosition, getOriginalSource, isEscapesEnabled, setEscapesEnabled
 
Methods inherited from class com.go.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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnicodeReader

public UnicodeReader(java.io.Reader source)
A UnicodeReader needs an underlying source Reader.
Parameters:
source - the source PositionReader
Method Detail

read

public int read()
         throws java.io.IOException
Overrides:
read in class PositionReader

main

public static void main(java.lang.String[] arg)
                 throws java.lang.Exception