org.apache.lucene.index
Class MockIndexInput

java.lang.Object
  extended by org.apache.lucene.store.DataInput
      extended by org.apache.lucene.store.IndexInput
          extended by org.apache.lucene.store.BufferedIndexInput
              extended by org.apache.lucene.index.MockIndexInput
All Implemented Interfaces:
Closeable, Cloneable

public class MockIndexInput
extends org.apache.lucene.store.BufferedIndexInput


Field Summary
 
Fields inherited from class org.apache.lucene.store.BufferedIndexInput
BUFFER_SIZE
 
Fields inherited from class org.apache.lucene.store.IndexInput
copyBuf
 
Constructor Summary
MockIndexInput(byte[] bytes)
           
 
Method Summary
 void close()
           
 long length()
           
protected  void readInternal(byte[] dest, int destOffset, int len)
           
protected  void seekInternal(long pos)
           
 
Methods inherited from class org.apache.lucene.store.BufferedIndexInput
clone, copyBytes, flushBuffer, getBufferSize, getFilePointer, newBuffer, readByte, readBytes, readBytes, readInt, readLong, readVInt, readVLong, seek, setBufferSize
 
Methods inherited from class org.apache.lucene.store.IndexInput
skipChars
 
Methods inherited from class org.apache.lucene.store.DataInput
readChars, readShort, readString, readStringStringMap, setModifiedUTF8StringsMode
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockIndexInput

public MockIndexInput(byte[] bytes)
Method Detail

readInternal

protected void readInternal(byte[] dest,
                            int destOffset,
                            int len)
Specified by:
readInternal in class org.apache.lucene.store.BufferedIndexInput

close

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

seekInternal

protected void seekInternal(long pos)
Specified by:
seekInternal in class org.apache.lucene.store.BufferedIndexInput

length

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


Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.