public final class BoundedServletInputStream extends ServletInputStream
| Constructor and Description |
|---|
BoundedServletInputStream(byte[] b)
Wraps the specified byte array.
|
BoundedServletInputStream(InputStream is,
long max)
Wraps the specified input stream.
|
BoundedServletInputStream(ServletInputStream sis,
long max)
Wraps the specified input stream.
|
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
boolean |
isFinished() |
boolean |
isReady() |
void |
mark(int limit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
void |
reset() |
void |
setReadListener(ReadListener arg0) |
long |
skip(long n) |
readLinepublic BoundedServletInputStream(InputStream is, long max)
is - The input stream to wrap.max - The maximum number of bytes to read from the stream.public BoundedServletInputStream(ServletInputStream sis, long max)
sis - The input stream to wrap.max - The maximum number of bytes to read from the stream.public BoundedServletInputStream(byte[] b)
b - The byte contents of the stream.public final int read() throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b) throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b, int off, int len) throws IOException
read in class InputStreamIOExceptionpublic long skip(long n) throws IOException
skip in class InputStreamIOExceptionpublic int available() throws IOException
available in class InputStreamIOExceptionpublic void reset() throws IOException
reset in class InputStreamIOExceptionpublic void mark(int limit)
mark in class InputStreampublic boolean markSupported()
markSupported in class InputStreampublic final void close() throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic boolean isFinished()
isFinished in class ServletInputStreampublic boolean isReady()
isReady in class ServletInputStreampublic void setReadListener(ReadListener arg0)
setReadListener in class ServletInputStreamCopyright © 2016–2019 The Apache Software Foundation. All rights reserved.