net.sf.rej.util
Class CountInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by java.io.BufferedInputStream
              extended by net.sf.rej.util.CountInputStream
All Implemented Interfaces:
java.io.Closeable

public class CountInputStream
extends java.io.BufferedInputStream


Constructor Summary
CountInputStream(java.io.InputStream is)
           
 
Method Summary
 int getPosition()
           
 void mark(int readlimit)
           
 int read()
           
 void reset()
           
 
Methods inherited from class java.io.BufferedInputStream
available, close, markSupported, read, skip
 
Methods inherited from class java.io.FilterInputStream
read
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CountInputStream

public CountInputStream(java.io.InputStream is)
Method Detail

read

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

mark

public void mark(int readlimit)
Overrides:
mark in class java.io.BufferedInputStream

reset

public void reset()
           throws java.io.IOException
Overrides:
reset in class java.io.BufferedInputStream
Throws:
java.io.IOException

getPosition

public int getPosition()