public class CountingReaderInputStream
extends java.io.InputStream
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
long |
getLength()
The number of characters read so far (but there might still be some bytes
in the buffer).
|
int |
read() |
int |
read(byte[] buff,
int offset,
int len) |
public int read(byte[] buff,
int offset,
int len)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic long getLength()
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreamjava.io.IOException