The buffer used by Tomcat request. This is a derivative of the Tomcat 3.3
OutputBuffer, adapted to handle input instead of output. This allows
complete recycling of the facade objects (the ServletInputStream and the
BufferedReader).
BYTE_STATE
public final int BYTE_STATE
CHAR_STATE
public final int CHAR_STATE
DEFAULT_BUFFER_SIZE
public static final int DEFAULT_BUFFER_SIZE
- 8192
DEFAULT_ENCODING
public static final String DEFAULT_ENCODING
INITIAL_STATE
public final int INITIAL_STATE
conv
protected B2CConverter conv
Current byte to char converter.
encoders
protected HashMap encoders
List of encoders.
available
public int available()
throws IOException
checkConverter
public void checkConverter()
throws IOException
close
public void close()
throws IOException
Close the input buffer.
getRequest
public Request getRequest()
Get associated Coyote request.
- the associated Coyote request
log
protected void log(String s)
mark
public void mark(int readAheadLimit)
throws IOException
markSupported
public boolean markSupported()
read
public int read()
throws IOException
read
public int read(byte[] b,
int off,
int len)
throws IOException
read
public int read(char[] cbuf)
throws IOException
read
public int read(char[] cbuf,
int off,
int len)
throws IOException
readByte
public int readByte()
throws IOException
ready
public boolean ready()
throws IOException
realWriteChars
public void realWriteChars(c[] ,
int off,
int len)
throws IOException
Since the converter will use append, it is possible to get chars to
be removed from the buffer for "writing". Since the chars have already
been read before, they are ignored. If a mark was set, then the
mark is lost.
recycle
public void recycle()
Recycle the output buffer.
reset
public void reset()
throws IOException
setConverter
protected void setConverter()
throws IOException
setEncoding
public void setEncoding(String s)
setRequest
public void setRequest(Request coyoteRequest)
Associated Coyote request.
coyoteRequest
- Associated Coyote request
skip
public long skip(long n)
throws IOException