| Modifier and Type | Field and Description |
|---|---|
| protected byte[] | buf
The byte array containing the bytes to read. |
| pack-priv InputStream | |
| protected int | pos
The current position within the byte array |
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | available()
Overrides java. |
| public void | close()
Overrides java. Implements java. |
| public int | |
| public int | |
| public int | read(byte[]
the buffer into which the data is read. b, int the start offset in array off, int b
at which the data is written.the maximum number of bytes to read. len)Overrides java. |
| private int | Returns: int the number of bytes actually read or -1 if end of stream.the byte array in which to store the read bytes. buffer, int the offset in offset, int buffer to store the read bytes.the maximum number of bytes to store in length)buffer.Reads at most |
| public int | |
| public short | |
| public void | unread(byte[]
the byte array containing bytes to push back into the stream b)Push back the entire content of the given buffer |
| buf | back to summary |
|---|---|
| protected byte[] buf The byte array containing the bytes to read. | |
| in | back to summary |
|---|---|
| pack-priv InputStream in | |
| pos | back to summary |
|---|---|
| protected int pos The current position within the byte array | |
| position | back to summary |
|---|---|
| pack-priv int position | |
| LEDataInputStream | back to summary |
|---|---|
| public LEDataInputStream(InputStream input) | |
| LEDataInputStream | back to summary |
|---|---|
| public LEDataInputStream(InputStream input, int bufferSize) | |
| available | back to summary |
|---|---|
| public int available() throws IOException Overrides java. Answers how many bytes are available for reading without blocking
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Doc from java. Closes this input stream and releases any system resources associated with the stream.
| |
| getPosition | back to summary |
|---|---|
| public int getPosition() Answer how many bytes were read. | |
| read | back to summary |
|---|---|
| public int read() throws IOException Implements abstract java. Answer the next byte of the input stream.
| |
| read | back to summary |
|---|---|
| public int read(byte[] b, int off, int len) throws IOException Overrides java. Don't imitate the JDK behaviour of reading a random number of bytes when you can actually read them all.
| |
| readData | back to summary |
|---|---|
| private int readData(byte[] buffer, int offset, int length) throws IOException Reads at most
Answer the number of bytes actually read or -1 if no bytes were read and
end of stream was encountered. This implementation reads bytes from
the pushback buffer first, then the target stream if more bytes are required
to satisfy
| |
| readInt | back to summary |
|---|---|
| public int readInt() throws IOException Answer an integer comprised of the next four bytes of the input stream. | |
| readShort | back to summary |
|---|---|
| public short readShort() throws IOException Answer a short comprised of the next two bytes of the input stream. | |
| unread | back to summary |
|---|---|
| public void unread(byte[] b) throws IOException Push back the entire content of the given buffer
The bytes are pushed so that they would be read back b[0], b[1], etc.
If the push back buffer cannot handle the bytes copied from
| |