public class ResettableServletInputStream
extends javax.servlet.ServletInputStream
Constructor and Description |
---|
ResettableServletInputStream(byte[] rawData)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isFinished() |
boolean |
isReady() |
int |
read() |
void |
reset()
Set the input to use for the stream.
|
void |
setReadListener(javax.servlet.ReadListener listener) |
public ResettableServletInputStream(byte[] rawData)
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public boolean isFinished()
isFinished
in class javax.servlet.ServletInputStream
public boolean isReady()
isReady
in class javax.servlet.ServletInputStream
public void setReadListener(javax.servlet.ReadListener listener)
setReadListener
in class javax.servlet.ServletInputStream
public void reset() throws java.io.IOException
reset
in class java.io.InputStream
java.io.IOException