com.flazr.io
Class RandomAccessFileReader

java.lang.Object
  extended by com.flazr.io.RandomAccessFileReader
All Implemented Interfaces:
BufferReader

public class RandomAccessFileReader
extends Object
implements BufferReader


Constructor Summary
RandomAccessFileReader(File file)
           
RandomAccessFileReader(String path)
           
 
Method Summary
 void close()
           
 long position()
           
 void position(long position)
           
 org.jboss.netty.buffer.ChannelBuffer read(int size)
           
 byte[] readBytes(int size)
           
 int readInt()
           
 long readUnsignedInt()
           
 long size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomAccessFileReader

public RandomAccessFileReader(String path)

RandomAccessFileReader

public RandomAccessFileReader(File file)
Method Detail

size

public long size()
Specified by:
size in interface BufferReader

position

public long position()
Specified by:
position in interface BufferReader

position

public void position(long position)
Specified by:
position in interface BufferReader

read

public org.jboss.netty.buffer.ChannelBuffer read(int size)
Specified by:
read in interface BufferReader

readBytes

public byte[] readBytes(int size)
Specified by:
readBytes in interface BufferReader

readInt

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

readUnsignedInt

public long readUnsignedInt()
Specified by:
readUnsignedInt in interface BufferReader

close

public void close()
Specified by:
close in interface BufferReader


Copyright © 2011. All Rights Reserved.