|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
org.modeshape.common.util.SizeMeasuringInputStream
public class SizeMeasuringInputStream
An InputStream
implementation that can wrap another input stream and determine the number of bytes read.
Constructor Summary | |
---|---|
SizeMeasuringInputStream(InputStream stream,
AtomicLong size)
|
Method Summary | |
---|---|
int |
available()
|
void |
close()
|
void |
mark(int readlimit)
|
boolean |
markSupported()
|
int |
read()
|
int |
read(byte[] b)
|
int |
read(byte[] b,
int off,
int len)
|
void |
reset()
|
Methods inherited from class java.io.InputStream |
---|
skip |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SizeMeasuringInputStream(InputStream stream, AtomicLong size)
Method Detail |
---|
public int read() throws IOException
read
in class InputStream
IOException
InputStream.read()
public int read(byte[] b, int off, int len) throws IOException
read
in class InputStream
IOException
InputStream.read(byte[], int, int)
public int read(byte[] b) throws IOException
read
in class InputStream
IOException
InputStream.read(byte[])
public void mark(int readlimit)
mark
in class InputStream
InputStream.mark(int)
public boolean markSupported()
markSupported
in class InputStream
InputStream.markSupported()
public int available() throws IOException
available
in class InputStream
IOException
InputStream.available()
public void reset() throws IOException
reset
in class InputStream
IOException
InputStream.reset()
public void close() throws IOException
close
in interface Closeable
close
in class InputStream
IOException
InputStream.close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |