Package binaryFileStorage
Class CountingInputStream
java.lang.Object
java.io.InputStream
binaryFileStorage.CountingInputStream
- All Implemented Interfaces:
 Closeable,AutoCloseable
Wrapper class for an input stream which counts the number of bytes
 read, skipped etc. so that a getPos() function can be used to check 
 the total number of bytes now read.
- Author:
 - Doug Gillespie
 
- 
Constructor Summary
Constructors - 
Method Summary
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo 
- 
Constructor Details
- 
CountingInputStream
 
 - 
 - 
Method Details
- 
read
- Specified by:
 readin classInputStream- Throws:
 IOException
 - 
available
- Overrides:
 availablein classInputStream- Throws:
 IOException
 - 
close
- Specified by:
 closein interfaceAutoCloseable- Specified by:
 closein interfaceCloseable- Overrides:
 closein classInputStream- Throws:
 IOException
 - 
mark
public void mark(int arg0) - Overrides:
 markin classInputStream
 - 
markSupported
public boolean markSupported()- Overrides:
 markSupportedin classInputStream
 - 
read
- Overrides:
 readin classInputStream- Throws:
 IOException
 - 
read
- Overrides:
 readin classInputStream- Throws:
 IOException
 - 
reset
- Overrides:
 resetin classInputStream- Throws:
 IOException
 - 
skip
- Overrides:
 skipin classInputStream- Throws:
 IOException
 - 
getPos
public long getPos()- Returns:
 - the pos
 
 
 -