|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.InputStream javax.servlet.ServletInputStream org.norther.tammi.spray.filter.chain.ServletInputStreamWrapper
public class ServletInputStreamWrapper
A servlet input stream wrapper supporting a length limit.
Note that the wrapped stream is not closed by the close method of this stream.
Constructor Summary | |
---|---|
ServletInputStreamWrapper()
Constructs a new input stream. |
|
ServletInputStreamWrapper(InputStream in)
Constructs a new input stream with an adapter. |
|
ServletInputStreamWrapper(InputStream in,
int len)
Constructs a new input stream with an adapter and length. |
Method Summary | |
---|---|
int |
available()
|
void |
close()
Marks the stream as closed, but doesn't close the wrapped one. |
boolean |
isClosed()
Check whether the stream is closed. |
void |
mark(int readlimit)
|
boolean |
markSupported()
|
int |
read()
|
int |
read(byte[] b)
|
int |
read(byte[] b,
int off,
int len)
|
void |
reset()
|
long |
skip(long n)
|
Methods inherited from class javax.servlet.ServletInputStream |
---|
readLine |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServletInputStreamWrapper()
public ServletInputStreamWrapper(InputStream in)
in
- the wrapped input stream.public ServletInputStreamWrapper(InputStream in, int len)
in
- the wrapped input stream.len
- the length of the stream.Method Detail |
---|
public int available() throws IOException
available
in class InputStream
IOException
public 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 void mark(int readlimit)
mark
in class InputStream
public boolean markSupported()
markSupported
in class InputStream
public void reset() throws IOException
reset
in class InputStream
IOException
public long skip(long n) throws IOException
skip
in class InputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in class InputStream
IOException
- on errors.public boolean isClosed()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |