public class MockIndexInputWrapper
extends org.apache.lucene.store.IndexInput
| Constructor and Description |
|---|
MockIndexInputWrapper(MockDirectoryWrapper dir,
String name,
org.apache.lucene.store.IndexInput delegate)
Construct an empty output buffer.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
void |
close() |
void |
copyBytes(org.apache.lucene.store.IndexOutput out,
long numBytes) |
long |
getFilePointer() |
long |
length() |
byte |
readByte() |
void |
readBytes(byte[] b,
int offset,
int len) |
void |
readBytes(byte[] b,
int offset,
int len,
boolean useBuffer) |
void |
readChars(char[] buffer,
int start,
int length) |
int |
readInt() |
long |
readLong() |
String |
readString() |
Map<String,String> |
readStringStringMap() |
int |
readVInt() |
long |
readVLong() |
void |
seek(long pos) |
void |
setModifiedUTF8StringsMode() |
void |
skipChars(int length) |
public MockIndexInputWrapper(MockDirectoryWrapper dir, String name, org.apache.lucene.store.IndexInput delegate)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class org.apache.lucene.store.IndexInputIOExceptionpublic Object clone()
clone in class org.apache.lucene.store.DataInputpublic long getFilePointer()
getFilePointer in class org.apache.lucene.store.IndexInputpublic void seek(long pos)
throws IOException
seek in class org.apache.lucene.store.IndexInputIOExceptionpublic long length()
length in class org.apache.lucene.store.IndexInputpublic byte readByte()
throws IOException
readByte in class org.apache.lucene.store.DataInputIOExceptionpublic void readBytes(byte[] b,
int offset,
int len)
throws IOException
readBytes in class org.apache.lucene.store.DataInputIOExceptionpublic void copyBytes(org.apache.lucene.store.IndexOutput out,
long numBytes)
throws IOException
copyBytes in class org.apache.lucene.store.IndexInputIOExceptionpublic void readBytes(byte[] b,
int offset,
int len,
boolean useBuffer)
throws IOException
readBytes in class org.apache.lucene.store.DataInputIOExceptionpublic int readInt()
throws IOException
readInt in class org.apache.lucene.store.DataInputIOExceptionpublic int readVInt()
throws IOException
readVInt in class org.apache.lucene.store.DataInputIOExceptionpublic long readLong()
throws IOException
readLong in class org.apache.lucene.store.DataInputIOExceptionpublic long readVLong()
throws IOException
readVLong in class org.apache.lucene.store.DataInputIOExceptionpublic String readString() throws IOException
readString in class org.apache.lucene.store.DataInputIOExceptionpublic Map<String,String> readStringStringMap() throws IOException
readStringStringMap in class org.apache.lucene.store.DataInputIOExceptionpublic void setModifiedUTF8StringsMode()
setModifiedUTF8StringsMode in class org.apache.lucene.store.DataInputpublic void readChars(char[] buffer,
int start,
int length)
throws IOException
readChars in class org.apache.lucene.store.DataInputIOExceptionpublic void skipChars(int length)
throws IOException
skipChars in class org.apache.lucene.store.IndexInputIOExceptionCopyright © 2000-2012 Apache Software Foundation. All Rights Reserved.