public class BufferedServletInputStream
extends javax.servlet.ServletInputStream
BufferedServletInputStream
implements
a ServletInputStream using an underlying InputStream.
Modifier and Type | Field and Description |
---|---|
private java.io.InputStream |
in
The underlying
InputStream |
protected static byte[] |
NO_DATA |
Constructor and Description |
---|
BufferedServletInputStream() |
BufferedServletInputStream(byte[] data) |
BufferedServletInputStream(java.io.InputStream in) |
BufferedServletInputStream(java.lang.String text) |
protected static final byte[] NO_DATA
private java.io.InputStream in
InputStream
public BufferedServletInputStream()
public BufferedServletInputStream(java.io.InputStream in)
public BufferedServletInputStream(java.lang.String text)
public BufferedServletInputStream(byte[] data)
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 void mark(int readlimit)
mark
in class java.io.InputStream
public boolean markSupported()
markSupported
in class java.io.InputStream
public int read(byte[] b) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int read() 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 long skip(long n) throws java.io.IOException
skip
in class java.io.InputStream
java.io.IOException