|
||||||||||
| 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 InputStreamIOExceptionInputStream.read()
public int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionInputStream.read(byte[], int, int)
public int read(byte[] b)
throws IOException
read in class InputStreamIOExceptionInputStream.read(byte[])public void mark(int readlimit)
mark in class InputStreamInputStream.mark(int)public boolean markSupported()
markSupported in class InputStreamInputStream.markSupported()
public int available()
throws IOException
available in class InputStreamIOExceptionInputStream.available()
public void reset()
throws IOException
reset in class InputStreamIOExceptionInputStream.reset()
public void close()
throws IOException
close in interface Closeableclose in class InputStreamIOExceptionInputStream.close()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||