| Modifier and Type | Field and Description |
|---|---|
| protected InputBuffer | |
| private static final char[] | |
| protected char[] | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| protected Object | |
| public void | close()
Overrides java. Implements java. Closes the stream and releases any system resources associated with it. |
| public void | mark(int
Limit on the number of characters that may be
read while still preserving the mark. An attempt
to reset the stream after reading characters
up to this limit or beyond may fail.
A limit value larger than the size of the input
buffer will cause a new buffer to be allocated
whose size is no smaller than limit.
Therefore large values should be used with care. readAheadLimit)Overrides java. Marks the present position in the stream. |
| public boolean | markSupported()
Overrides java. Tells whether this stream supports the mark() operation, which it does. |
| public int | |
| public int | |
| public int | read(char[]
Destination buffer cbuf, int Offset at which to start storing characters off, int Maximum number of characters to read len)Overrides java. Reads characters into a portion of an array. |
| public String | |
| public boolean | |
| public void | |
| public long | skip(long
The number of characters to skip n)Overrides java. Skips characters. |
| ib | back to summary |
|---|---|
| protected InputBuffer ib | |
| LINE_SEP | back to summary |
|---|---|
| private static final char[] LINE_SEP | |
| lineBuffer | back to summary |
|---|---|
| protected char[] lineBuffer | |
| MAX_LINE_LENGTH | back to summary |
|---|---|
| private static final int MAX_LINE_LENGTH | |
| CoyoteReader | back to summary |
|---|---|
| public CoyoteReader(InputBuffer ib) | |
| clear | back to summary |
|---|---|
| pack-priv void clear() Clear facade. | |
| clone | back to summary |
|---|---|
| protected Object clone() throws CloneNotSupportedException Overrides java. Prevent cloning the facade.
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Doc from java. Closes the stream and releases any system resources associated with it. Once the stream has been closed, further read(), ready(), mark(), reset(), or skip() invocations will throw an IOException. Closing a previously closed stream has no effect.
| |
| mark | back to summary |
|---|---|
| public void mark(int readAheadLimit) throws IOException Overrides java. Doc from java. Marks the present position in the stream. Subsequent calls to reset() will attempt to reposition the stream to this point.
| |
| markSupported | back to summary |
|---|---|
| public boolean markSupported() Overrides java. Doc from java. Tells whether this stream supports the mark() operation, which it does.
| |
| read | back to summary |
|---|---|
| public int read() throws IOException Overrides java. Doc from java. Reads a single character.
| |
| read | back to summary |
|---|---|
| public int read(char[] cbuf) throws IOException Overrides java. Doc from java. Reads characters into an array. This method will block until some input is available, an I/O error occurs, or the end of the stream is reached. If the length of
| |
| read | back to summary |
|---|---|
| public int read(char[] cbuf, int off, int len) throws IOException Overrides java. Doc from java. Reads characters into a portion of an array. This method implements the general contract of the corresponding
read on the underlying stream returns
-1 to indicate end-of-file then this method returns
-1. Otherwise this method returns the number of characters
actually read.
Subclasses of this class are encouraged, but not required, to attempt to read as many characters as possible in the same fashion. Ordinarily this method takes characters from this stream's character
buffer, filling it from the underlying stream as necessary. If,
however, the buffer is empty, the mark is not valid, and the requested
length is at least as large as the buffer, then this method will read
characters directly from the underlying stream into the given array.
Thus redundant
| |
| readLine | back to summary |
|---|---|
| public String readLine() throws IOException Overrides java. Doc from java. Reads a line of text. A line is considered to be terminated by any one of a line feed ('\n'), a carriage return ('\r'), a carriage return followed immediately by a line feed, or by reaching the end-of-file (EOF).
| |
| ready | back to summary |
|---|---|
| public boolean ready() throws IOException Overrides java. Doc from java. Tells whether this stream is ready to be read. A buffered character stream is ready if the buffer is not empty, or if the underlying character stream is ready.
| |
| reset | back to summary |
|---|---|
| public void reset() throws IOException Overrides java. Doc from java. Resets the stream to the most recent mark.
| |
| skip | back to summary |
|---|---|
| public long skip(long n) throws IOException Overrides java. Doc from java. Skips characters. This method will block until some characters are available, an I/O error occurs, or the end of the stream is reached. If the stream is already at its end before this method is invoked, then no characters are skipped and zero is returned.
| |