org.teatrove.tea.io
Class PositionReader

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
All Implemented Interfaces:
Closeable, Readable
Direct Known Subclasses:
EscapeReader, LinePositionReader, PushbackPositionReader

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

public class PositionReader
extends PositionReader

The PositionReader tracks the postion in the stream of the next character to be read. PositionReaders chain together such that the position is read from the earliest PositionReader in the chain.

Position readers automatically close the underlying input stream when the end of file is reached. Ordinary input streams don't do this.

Author:
Brian S O'Neill

Field Summary
 
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
PositionReader(Reader reader)
          Deprecated.  
 
Method Summary
 
Methods inherited from class org.teatrove.trove.io.PositionReader
close, getNextPosition, read, 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

PositionReader

public PositionReader(Reader reader)
Deprecated. 


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