com.go.tea.io
Class EscapeReader

java.lang.Object
  |
  +--java.io.Reader
        |
        +--java.io.FilterReader
              |
              +--com.go.trove.io.PositionReader
                    |
                    +--com.go.tea.io.PositionReader
                          |
                          +--com.go.tea.io.EscapeReader
Direct Known Subclasses:
TagReader, UnicodeReader

Deprecated. Moved to com.go.trove.io package.

public abstract class EscapeReader
extends PositionReader

This reader aids in decoding escapes in a character stream.

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

Field Summary
protected  boolean mEscapesEnabled
          Deprecated.  
protected  PushbackPositionReader mSource
          Deprecated.  
 
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
EscapeReader(java.io.Reader source, int escapeSize)
          Deprecated. An EscapeReader needs an underlying source reader.
 
Method Summary
 int getNextPosition()
          Deprecated.  
 java.io.Reader getOriginalSource()
          Deprecated.  
 boolean isEscapesEnabled()
          Deprecated. Escapes are enabled by default.
 void setEscapesEnabled(boolean enabled)
          Deprecated. Enable or disable the processing of escapes.
 
Methods inherited from class com.go.trove.io.PositionReader
close, read, 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
 

Field Detail

mSource

protected PushbackPositionReader mSource
Deprecated. 

mEscapesEnabled

protected boolean mEscapesEnabled
Deprecated. 
Constructor Detail

EscapeReader

public EscapeReader(java.io.Reader source,
                    int escapeSize)
Deprecated. 
An EscapeReader needs an underlying source reader.
Parameters:
source - the source Reader
escapeSize - the number of characters in an escape code
Method Detail

getOriginalSource

public java.io.Reader getOriginalSource()
Deprecated. 

isEscapesEnabled

public boolean isEscapesEnabled()
Deprecated. 
Escapes are enabled by default.

setEscapesEnabled

public void setEscapesEnabled(boolean enabled)
Deprecated. 
Enable or disable the processing of escapes. When disabled, this Reader only functions as a PushbackReader.

getNextPosition

public int getNextPosition()
Deprecated. 
Overrides:
getNextPosition in class PositionReader
Returns:
the position of the next character to be read.