org.apache.lucene.index
Class MockIndexInput
java.lang.Object
   org.apache.lucene.store.DataInput
org.apache.lucene.store.DataInput
       org.apache.lucene.store.IndexInput
org.apache.lucene.store.IndexInput
           org.apache.lucene.store.BufferedIndexInput
org.apache.lucene.store.BufferedIndexInput
               org.apache.lucene.index.MockIndexInput
org.apache.lucene.index.MockIndexInput
- All Implemented Interfaces: 
- Closeable, Cloneable
- public class MockIndexInput 
- extends BufferedIndexInput
IndexInput backed by a byte[] for testing.
 
 
 
 
| Methods inherited from class org.apache.lucene.store.BufferedIndexInput | 
| bufferSize, clone, flushBuffer, getBufferSize, getFilePointer, newBuffer, readByte, readBytes, readBytes, readInt, readLong, readShort, readVInt, readVLong, seek, setBufferSize | 
 
 
 
 
MockIndexInput
public MockIndexInput(byte[] bytes)
readInternal
protected void readInternal(byte[] dest,
                            int destOffset,
                            int len)
- 
- Specified by:
- readInternalin class- BufferedIndexInput
 
- 
 
close
public void close()
- 
- Specified by:
- closein interface- Closeable
- Specified by:
- closein class- IndexInput
 
- 
 
seekInternal
protected void seekInternal(long pos)
- 
- Specified by:
- seekInternalin class- BufferedIndexInput
 
- 
 
length
public long length()
- 
- Specified by:
- lengthin class- IndexInput
 
- 
 
          Copyright © 2000-2013 Apache Software Foundation.  All Rights Reserved.