public class ServletInputStreamAdapter
extends javax.servlet.ServletInputStream
Modifier and Type | Field and Description |
---|---|
protected java.io.InputStream |
inputStream |
Constructor and Description |
---|
ServletInputStreamAdapter(java.io.InputStream inputStream) |
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
close() |
boolean |
isFinished() |
boolean |
isReady() |
void |
mark(int readLimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] bytes) |
int |
read(byte[] bytes,
int offset,
int length) |
void |
reset() |
void |
setReadListener(javax.servlet.ReadListener readListener) |
long |
skip(long skip) |
public ServletInputStreamAdapter(java.io.InputStream inputStream)
public int available() throws java.io.IOException
available
in class java.io.InputStream
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
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 mark(int readLimit)
mark
in class java.io.InputStream
public boolean markSupported()
markSupported
in class java.io.InputStream
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int read(byte[] bytes) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int read(byte[] bytes, int offset, int length) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public void reset() throws java.io.IOException
reset
in class java.io.InputStream
java.io.IOException
public void setReadListener(javax.servlet.ReadListener readListener)
setReadListener
in class javax.servlet.ServletInputStream
public long skip(long skip) throws java.io.IOException
skip
in class java.io.InputStream
java.io.IOException