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) |
readLine
public 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 InputStream
IOException
public int read(byte[] b) throws IOException
read
in class InputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class InputStream
IOException
public long skip(long n) throws IOException
skip
in class InputStream
IOException
public int available() throws IOException
available
in class InputStream
IOException
public void reset() throws IOException
reset
in class InputStream
IOException
public void mark(int limit)
mark
in class InputStream
public boolean markSupported()
markSupported
in class InputStream
public final void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
public boolean isFinished()
isFinished
in class ServletInputStream
public boolean isReady()
isReady
in class ServletInputStream
public void setReadListener(ReadListener arg0)
setReadListener
in class ServletInputStream
Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.