public class CountingAndLimitingInputStream extends InputStream
| Constructor and Description |
|---|
CountingAndLimitingInputStream(InputStream theWrap,
int theMaxBytes)
Wraps another input stream, counting the number of bytes read.
|
| Modifier and Type | Method and Description |
|---|---|
int |
read() |
int |
read(byte[] theRead) |
int |
read(byte[] b,
int off,
int len) |
available, close, mark, markSupported, reset, skippublic CountingAndLimitingInputStream(InputStream theWrap, int theMaxBytes)
theWrap - the input stream to be wrappedpublic int read() throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b, int off, int len) throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] theRead) throws IOException
read in class InputStreamIOExceptionCopyright © 2014–2019 University Health Network. All rights reserved.