org.ontobox.fast.util.io
Class ReadBuffer

java.lang.Object
  extended by org.ontobox.fast.util.io.ReadBuffer

public class ReadBuffer
extends java.lang.Object

Author:
Anton Malykh

Nested Class Summary
static class ReadBuffer.EOF
           
 
Constructor Summary
ReadBuffer(java.nio.channels.FileChannel ch)
           
 
Method Summary
 java.lang.String getASCIICompact()
           
 byte getByte()
           
 char getChar()
           
 java.lang.Integer getInt()
           
 long getLong()
           
 java.lang.String getRAWASCII(int count)
           
 java.lang.String getString()
           
 void preload()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReadBuffer

public ReadBuffer(java.nio.channels.FileChannel ch)
           throws java.io.IOException
Throws:
java.io.IOException
Method Detail

preload

public final void preload()

getInt

public final java.lang.Integer getInt()

getLong

public final long getLong()

getChar

public final char getChar()

getByte

public final byte getByte()

getString

public final java.lang.String getString()

getASCIICompact

public final java.lang.String getASCIICompact()

getRAWASCII

public final java.lang.String getRAWASCII(int count)
                                   throws java.io.IOException
Throws:
java.io.IOException