com.flazr.io
Class FileChannelReader

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

public class FileChannelReader
extends Object
implements BufferReader


Constructor Summary
FileChannelReader(File file)
           
FileChannelReader(String path)
           
 
Method Summary
 void close()
           
 long position()
           
 void position(long newPosition)
           
 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

FileChannelReader

public FileChannelReader(String path)

FileChannelReader

public FileChannelReader(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 newPosition)
Specified by:
position in interface BufferReader

read

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

readInt

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

readUnsignedInt

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

readBytes

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

close

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


Copyright © 2011. All Rights Reserved.