org.apache.lucene.store.bytebuffer
Class ByteBufferIndexInput

java.lang.Object
  extended by org.apache.lucene.store.DataInput
      extended by org.apache.lucene.store.IndexInput
          extended by org.apache.lucene.store.bytebuffer.ByteBufferIndexInput
All Implemented Interfaces:
Closeable, Cloneable

public class ByteBufferIndexInput
extends org.apache.lucene.store.IndexInput


Constructor Summary
ByteBufferIndexInput(String name, ByteBufferFile file)
           
 
Method Summary
 Object clone()
           
 void close()
           
 long getFilePointer()
           
 long length()
           
 byte readByte()
           
 void readBytes(byte[] b, int offset, int len)
           
 int readInt()
           
 long readLong()
           
 short readShort()
           
 void seek(long pos)
           
 
Methods inherited from class org.apache.lucene.store.IndexInput
copyBytes, skipChars, toString
 
Methods inherited from class org.apache.lucene.store.DataInput
readBytes, readChars, readString, readStringStringMap, readVInt, readVLong, setModifiedUTF8StringsMode
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ByteBufferIndexInput

public ByteBufferIndexInput(String name,
                            ByteBufferFile file)
                     throws IOException
Throws:
IOException
Method Detail

close

public void close()
Specified by:
close in interface Closeable
Specified by:
close in class org.apache.lucene.store.IndexInput

length

public long length()
Specified by:
length in class org.apache.lucene.store.IndexInput

readShort

public short readShort()
                throws IOException
Overrides:
readShort in class org.apache.lucene.store.DataInput
Throws:
IOException

readInt

public int readInt()
            throws IOException
Overrides:
readInt in class org.apache.lucene.store.DataInput
Throws:
IOException

readLong

public long readLong()
              throws IOException
Overrides:
readLong in class org.apache.lucene.store.DataInput
Throws:
IOException

readByte

public byte readByte()
              throws IOException
Specified by:
readByte in class org.apache.lucene.store.DataInput
Throws:
IOException

readBytes

public void readBytes(byte[] b,
                      int offset,
                      int len)
               throws IOException
Specified by:
readBytes in class org.apache.lucene.store.DataInput
Throws:
IOException

getFilePointer

public long getFilePointer()
Specified by:
getFilePointer in class org.apache.lucene.store.IndexInput

seek

public void seek(long pos)
          throws IOException
Specified by:
seek in class org.apache.lucene.store.IndexInput
Throws:
IOException

clone

public Object clone()
Overrides:
clone in class org.apache.lucene.store.DataInput


Copyright © 2009-2012. All Rights Reserved.