public final class RandomAccessFileInputstream
extends java.io.InputStream
RandomAccessFile
into an InputStream
.Modifier and Type | Field and Description |
---|---|
private java.io.RandomAccessFile |
source
The file access to read from.
|
Constructor and Description |
---|
RandomAccessFileInputstream(java.io.RandomAccessFile file)
Creates an instance that will provide
InputStream functionality
on the given RandomAccessFile by delegating calls. |
public RandomAccessFileInputstream(java.io.RandomAccessFile file)
InputStream
functionality
on the given RandomAccessFile
by delegating calls.file
- The file to read.public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int read(byte[] buffer, int off, int len) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public long skip(long amount) throws java.io.IOException
skip
in class java.io.InputStream
java.io.IOException
Copyright © 2005-2013 java.net. All Rights Reserved.