net.java.sen.io
Class MappedBufferedReader

java.lang.Object
  extended bynet.java.sen.io.MappedBufferedReader
All Implemented Interfaces:
FileAccessor

public class MappedBufferedReader
extends java.lang.Object
implements FileAccessor


Constructor Summary
MappedBufferedReader(java.io.File file)
           
MappedBufferedReader(java.lang.String name)
           
 
Method Summary
 void close()
           
 int read()
           
 int read(byte[] b, int start, int length)
           
 int readInt()
           
 short readShort()
           
 void seek(int pos)
           
 void seek(long pos)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MappedBufferedReader

public MappedBufferedReader(java.lang.String name)
                     throws java.io.IOException

MappedBufferedReader

public MappedBufferedReader(java.io.File file)
                     throws java.io.IOException
Method Detail

seek

public void seek(int pos)
          throws java.io.IOException
Specified by:
seek in interface FileAccessor
Throws:
java.io.IOException

seek

public void seek(long pos)
          throws java.io.IOException
Throws:
java.io.IOException

readShort

public short readShort()
                throws java.io.IOException
Specified by:
readShort in interface FileAccessor
Throws:
java.io.IOException

readInt

public int readInt()
Specified by:
readInt in interface FileAccessor

read

public int read()
Specified by:
read in interface FileAccessor

read

public int read(byte[] b,
                int start,
                int length)
Specified by:
read in interface FileAccessor

close

public void close()
           throws java.io.IOException
Specified by:
close in interface FileAccessor
Throws:
java.io.IOException