krati.io
Interface DataReader

All Known Implementing Classes:
ChannelReader, MappedReader

public interface DataReader

DataReader

Author:
jwu

Method Summary
 void close()
           
 File getFile()
           
 void open()
           
 long position()
           
 void position(long newPosition)
           
 int readInt()
           
 int readInt(long position)
           
 long readLong()
           
 long readLong(long position)
           
 short readShort()
           
 short readShort(long position)
           
 

Method Detail

getFile

File getFile()

open

void open()
          throws IOException
Throws:
IOException

close

void close()
           throws IOException
Throws:
IOException

readInt

int readInt()
            throws IOException
Throws:
IOException

readLong

long readLong()
              throws IOException
Throws:
IOException

readShort

short readShort()
                throws IOException
Throws:
IOException

readInt

int readInt(long position)
            throws IOException
Throws:
IOException

readLong

long readLong(long position)
              throws IOException
Throws:
IOException

readShort

short readShort(long position)
                throws IOException
Throws:
IOException

position

long position()
              throws IOException
Throws:
IOException

position

void position(long newPosition)
              throws IOException
Throws:
IOException


Copyright © 2011. All Rights Reserved.