Save This Page
Home » lucene-2.4.1-src » org.apache » lucene » store » [javadoc | source]
org.apache.lucene.store
abstract public class: BufferedIndexInput [javadoc | source]
java.lang.Object
   org.apache.lucene.store.IndexInput
      org.apache.lucene.store.BufferedIndexInput

All Implemented Interfaces:
    Cloneable

Direct Known Subclasses:
    CSIndexInput, FSIndexInput, NIOFSIndexInput

Base implementation class for buffered IndexInput .
Field Summary
public static final  int BUFFER_SIZE    Default buffer size 
protected  byte[] buffer     
Constructor:
 public BufferedIndexInput() 
 public BufferedIndexInput(int bufferSize) 
Method from org.apache.lucene.store.BufferedIndexInput Summary:
clone,   getBufferSize,   getFilePointer,   newBuffer,   readByte,   readBytes,   readBytes,   readInternal,   seek,   seekInternal,   setBufferSize
Methods from org.apache.lucene.store.IndexInput:
clone,   close,   getFilePointer,   length,   readByte,   readBytes,   readBytes,   readChars,   readInt,   readLong,   readString,   readVInt,   readVLong,   seek,   setModifiedUTF8StringsMode,   skipChars
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.lucene.store.BufferedIndexInput Detail:
 public Object clone() 
 public int getBufferSize() 
    Returns buffer size. @see #setBufferSize
 public long getFilePointer() 
 protected  void newBuffer(byte[] newBuffer) 
 public byte readByte() throws IOException 
 public  void readBytes(byte[] b,
    int offset,
    int len) throws IOException 
 public  void readBytes(byte[] b,
    int offset,
    int len,
    boolean useBuffer) throws IOException 
 abstract protected  void readInternal(byte[] b,
    int offset,
    int length) throws IOException
    Expert: implements buffer refill. Reads bytes from the current position in the input.
 public  void seek(long pos) throws IOException 
 abstract protected  void seekInternal(long pos) throws IOException
 public  void setBufferSize(int newSize) 
    Change the buffer size used by this IndexInput