HttpRetrievalService for details@Deprecated public class SizeLimitedInputStream extends InputStream
If you try to retrieve more than the maximum allowed size, the read() methods will fail with an IOException
| Constructor and Description |
|---|
SizeLimitedInputStream(InputStream wrappedInputStream,
int maxBytesToRead)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
int |
available()
Deprecated.
|
void |
close()
Deprecated.
|
void |
mark(int readlimit)
Deprecated.
|
boolean |
markSupported()
Deprecated.
|
int |
read()
Deprecated.
|
void |
reset()
Deprecated.
|
long |
skip(long n)
Deprecated.
|
read, readpublic SizeLimitedInputStream(InputStream wrappedInputStream, int maxBytesToRead)
public int read()
throws IOException
read in class InputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic int available()
throws IOException
available in class InputStreamIOExceptionpublic void mark(int readlimit)
mark in class InputStreampublic void reset()
throws IOException
reset in class InputStreamIOExceptionpublic boolean markSupported()
markSupported in class InputStreamCopyright © 2003–2022 Atlassian. All rights reserved.