Located in compilation unit of org.
seek(..) to position the stream at offset in the file.
| Modifier and Type | Field and Description |
|---|---|
| private long | |
| private long | |
| private RandomAccessFile |
| Access | Constructor and Description |
|---|---|
| pack-priv | ImportFileInputStream(RandomAccessFile
file the stream reads from. raf)Create a |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: the number of bytes that can be read from this stream.Overrides java. Returns the number of bytes that can be read from this stream. |
| public void | close()
Overrides java. Implements java. Closes this input stream and releases any associated resources |
| public int | |
| public int | Returns: the total number of bytes read into the buffer, or-1 if there is no more data because the end of
the file has been reached.the buffer into which the data is read. buf, int the start offset of the data. offset, int the maximum number of bytes read. length)Overrides java. Reads up to |
| pack-priv void |
| currentPosition | back to summary |
|---|---|
| private long currentPosition | |
| fileLength | back to summary |
|---|---|
| private long fileLength | |
| raf | back to summary |
|---|---|
| private RandomAccessFile raf | |
| ImportFileInputStream | back to summary |
|---|---|
| pack-priv ImportFileInputStream(RandomAccessFile raf) throws IOException Create a
| |
| available | back to summary |
|---|---|
| public int available() throws IOException Overrides java. Returns the number of bytes that can be read from this stream.
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Closes this input stream and releases any associated resources
| |
| read | back to summary |
|---|---|
| public int read() throws IOException Implements abstract java. Reads a byte of data from this input stream.
| |
| read | back to summary |
|---|---|
| public int read(byte[] buf, int offset, int length) throws IOException Overrides java. Reads up to
| |
| seek | back to summary |
|---|---|
| pack-priv void seek(long offset) throws IOException Sets the file offset at which the next read will occur.
| |