public class SizeLimitInputStream extends InputStream
| Constructor and Description |
|---|
SizeLimitInputStream(InputStream parentStream,
int readLimit)
Creates a new a new size limit input stream.
|
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
int |
getBytesRead()
Retrieves the number of bytes read from this stream.
|
int |
getSizeLimit()
Retrieves the size limit of this stream.
|
void |
mark(int readlimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
void |
reset() |
long |
skip(long n) |
readpublic SizeLimitInputStream(InputStream parentStream, int readLimit)
parentStream - The parent stream.readLimit - The size limit.public int available() throws IOException
available in class InputStreamIOExceptionpublic void mark(int readlimit)
mark in class InputStreampublic int read() throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b, int off, int len) throws IOException
read in class InputStreamIOExceptionpublic void reset() throws IOException
reset in class InputStreamIOExceptionpublic long skip(long n) throws IOException
skip in class InputStreamIOExceptionpublic boolean markSupported()
markSupported in class InputStreampublic void close() throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic int getBytesRead()
public int getSizeLimit()
Copyright © 2010-2015 ForgeRock AS. All Rights Reserved.