| Modifier and Type | Field and Description |
|---|---|
| private InputStream | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | LogInputStream(InputStream
the system dependent file descriptor in, int the total number of bytes allowed to be read length)Creates a log input file with the specified system dependent file descriptor. |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: the number of available bytes, which is initially equal to the file size.Overrides java. Returns the number of bytes that can be read without blocking. |
| public void | close()
Overrides java. Implements java. Closes the input stream. |
| public int | Returns: the byte read, or -1 if the end of the log or end of the stream is reached.Implements abstract java. Reads a byte of data. |
| public int | Returns: the actual number of bytes read, or -1 if the end of the log or end of the stream is reached.the buffer into which the data is read b)Overrides java. Reads data into an array of bytes. |
| public int | Returns: the actual number of bytes read, or -1 if the end of the log or end of the stream is reached.the buffer into which the data is read b, int the start offset of the data off, int the maximum number of bytes read len)Overrides java. Reads data into an array of bytes. |
| public long | Returns: the actual number of bytes skipped.the number of bytes to be skipped n)Overrides java. Skips n bytes of input. |
| LogInputStream | back to summary |
|---|---|
| public LogInputStream(InputStream in, int length) throws IOException Creates a log input file with the specified system dependent file descriptor.
| |
| available | back to summary |
|---|---|
| public int available() throws IOException Overrides java. Returns the number of bytes that can be read without blocking.
| |
| close | back to summary |
|---|---|
| public void close() Overrides java. Implements java. Closes the input stream. No further input can be read. the stream. | |
| read | back to summary |
|---|---|
| public int read() throws IOException Implements abstract java. Reads a byte of data. This method will block if no input is available.
| |
| read | back to summary |
|---|---|
| public int read(byte[] b) throws IOException Overrides java. Reads data into an array of bytes. This method blocks until some input is available.
| |
| read | back to summary |
|---|---|
| public int read(byte[] b, int off, int len) throws IOException Overrides java. Reads data into an array of bytes. This method blocks until some input is available.
| |
| skip | back to summary |
|---|---|
| public long skip(long n) throws IOException Overrides java. Skips n bytes of input.
| |