gnu.prolog.io
Class RandomAccessFileReader
java.lang.Object
   java.io.Reader
java.io.Reader
       gnu.prolog.io.RandomAccessFileReader
gnu.prolog.io.RandomAccessFileReader
- All Implemented Interfaces: 
- Closeable, Readable
- public class RandomAccessFileReader 
- extends Reader
Reads a RandomAccessFile
- 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:
- closein interface- Closeable
- Specified by:
- closein class- Reader
 
- 
- Throws:
- IOException
 
read
public int read(char[] cbuf,
                int off,
                int len)
         throws IOException
- 
- Specified by:
- readin class- Reader
 
- 
- Throws:
- IOException
 
size
public long size()
          throws IOException
- 
- Returns:
- the size of the RandomAccessFile
- Throws:
- IOException