|
Terrier IR Platform 2.2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.InputStream java.io.FilterInputStream uk.ac.gla.terrier.utility.io.CountingInputStream
public class CountingInputStream
Sub-Class of Filter Input Stream with the extra method getPos which returns the position in the Stream
Constructor Summary | |
---|---|
CountingInputStream(java.io.InputStream _in)
Constructor - Calls Super Class |
|
CountingInputStream(java.io.InputStream _in,
long offset)
Constructor - Calls Super Class |
Method Summary | |
---|---|
long |
getPos()
Returns the Position in the Stream |
int |
read()
Reads the Next Byte from the Stream |
int |
read(byte[] b)
Reads the next Byte Array from the Stream |
int |
read(byte[] b,
int off,
int len)
Reads the next Byte Array with Offset and Length from the Stream |
long |
skip(long n)
Calls Skip(long n) |
Methods inherited from class java.io.FilterInputStream |
---|
available, close, mark, markSupported, reset |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CountingInputStream(java.io.InputStream _in)
_in
- InputStream to wrappublic CountingInputStream(java.io.InputStream _in, long offset)
_in
- InputStream to wrapoffset
- Offset in bytes for which the counter should startMethod Detail |
---|
public int read() throws java.io.IOException
read
in class java.io.FilterInputStream
java.io.IOException
public int read(byte[] b) throws java.io.IOException
read
in class java.io.FilterInputStream
java.io.IOException
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class java.io.FilterInputStream
java.io.IOException
public long skip(long n) throws java.io.IOException
skip
in class java.io.FilterInputStream
java.io.IOException
public long getPos()
|
Terrier IR Platform 2.2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |