be.SIRAPRISE.util
Class DataInputStreamWithByteCounter

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by java.io.DataInputStream
              extended by be.SIRAPRISE.util.DataInputStreamWithByteCounter
All Implemented Interfaces:
java.io.Closeable, java.io.DataInput

public class DataInputStreamWithByteCounter
extends java.io.DataInputStream

Author:
Erwin Smout

Constructor Summary
DataInputStreamWithByteCounter(java.io.InputStream in)
          Creates the DataInputStreamWithByteCounter
 
Method Summary
 long getByteCounter()
          Gets byteCounter
 int read()
           
 
Methods inherited from class java.io.DataInputStream
read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, readUTF, skipBytes
 
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, reset, skip
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataInputStreamWithByteCounter

public DataInputStreamWithByteCounter(java.io.InputStream in)
Creates the DataInputStreamWithByteCounter

Parameters:
in -
Method Detail

getByteCounter

public final long getByteCounter()
Gets byteCounter

Returns:
byteCounter.

read

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