public class CountingInputStream
extends java.io.FilterInputStream
| Modifier and Type | Field and Description |
|---|---|
protected int |
_markpos
The position in the buffer the last time
mark(int) was called |
protected int |
_pos
The current buffer position
|
| Constructor and Description |
|---|
CountingInputStream(java.io.InputStream in) |
protected int _pos
protected int _markpos
mark(int) was calledpublic CountingInputStream(java.io.InputStream in)
FilterInputStream.FilterInputStream(InputStream)public int getPosition()
public int read()
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOExceptionpublic int read(byte[] b)
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOExceptionpublic int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOExceptionpublic long skip(long n)
throws java.io.IOException
skip in class java.io.FilterInputStreamjava.io.IOExceptionpublic void mark(int readlimit)
mark in class java.io.FilterInputStreampublic void reset()
throws java.io.IOException
reset in class java.io.FilterInputStreamjava.io.IOException