gnu.prolog.vm
Class RandomAccessFileReader
java.lang.Object
java.io.Reader
gnu.prolog.vm.RandomAccessFileReader
- All Implemented Interfaces:
- Closeable, Readable
public class RandomAccessFileReader
- extends Reader
- Author:
- Michiel Hendriks
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RandomAccessFileReader
public RandomAccessFileReader(RandomAccessFile randomAccess)
- Parameters:
randomAccess
-
createReader
protected void createReader()
seek
public void seek(long pos)
throws IOException
- Throws:
IOException
getPosition
public long getPosition()
throws IOException
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Specified by:
close
in class Reader
- Throws:
IOException
read
public int read(char[] cbuf,
int off,
int len)
throws IOException
- Specified by:
read
in class Reader
- Throws:
IOException
size
public long size()
throws IOException
- Returns:
-
- Throws:
IOException