| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | DataReader.
Constructing such an EOF exception is fast, because the stack trace is not filled in. If used in a static context, this will also avoid classloader memory leaks. |
| Modifier and Type | Field and Description |
|---|---|
| private final InputStream |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements abstract java. Implements java. Closes the stream and releases any system resources associated with it. |
| public int | read(char[]
Destination buffer buff, int Offset at which to start storing characters off, int Maximum number of characters to read len)Implements abstract java. Reads characters into a portion of an array. |
| public byte | |
| private char | |
| public int |
| in | back to summary |
|---|---|
| private final InputStream in | |
| DataReader | back to summary |
|---|---|
| public DataReader(InputStream in) Create a new data reader.
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements abstract 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.
| |
| read | back to summary |
|---|---|
| public int read(char[] buff, int off, int len) throws IOException Implements abstract java. Doc from java. Reads characters into a portion of 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
| |
| readByte | back to summary |
|---|---|
| public byte readByte() throws IOException Read a byte.
| |
| readChar | back to summary |
|---|---|
| private char readChar() throws IOException Read one character from the input stream.
| |
| readVarInt | back to summary |
|---|---|
| public int readVarInt() throws IOException Read a variable size integer.
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized Throwable | fillInStackTrace()
Overrides java. Fills in the execution stack trace. |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| FastEOFException | back to summary |
|---|---|
| pack-priv FastEOFException() | |
| fillInStackTrace | back to summary |
|---|---|
| public synchronized Throwable fillInStackTrace() Overrides java. Doc from java. Fills in the execution stack trace. This method records within this
If the stack trace of this | |