|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.InputStream
org.knime.base.node.util.BufferedFileReader.ByteCountingStream
public static final class BufferedFileReader.ByteCountingStream
Wraps an input stream and counts the number of bytes read from the stream.
| Constructor Summary | |
|---|---|
BufferedFileReader.ByteCountingStream(InputStream in)
|
|
| Method Summary | |
|---|---|
long |
bytesRead()
|
void |
close()
|
void |
mark(int readlimit)
|
boolean |
markSupported()
|
int |
read()
|
int |
read(byte[] b)
|
int |
read(byte[] b,
int off,
int len)
|
void |
reset()
|
long |
skip(long n)
|
| Methods inherited from class java.io.InputStream |
|---|
available |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BufferedFileReader.ByteCountingStream(InputStream in)
in - the input stream to wrap and count the bytes read.| Method Detail |
|---|
public int read()
throws IOException
read in class InputStreamIOException
public int read(byte[] b)
throws IOException
read in class InputStreamIOException
public int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOException
public long skip(long n)
throws IOException
skip in class InputStreamIOExceptionpublic long bytesRead()
public boolean markSupported()
markSupported in class InputStream
public void reset()
throws IOException
reset in class InputStreamIOExceptionpublic void mark(int readlimit)
mark in class InputStream
public void close()
throws IOException
close in interface Closeableclose in class InputStreamIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||