org.apache.lucene.store
Class MockIndexInputWrapper
java.lang.Object
org.apache.lucene.store.DataInput
org.apache.lucene.store.IndexInput
org.apache.lucene.store.MockIndexInputWrapper
- All Implemented Interfaces:
- Closeable, Cloneable
public class MockIndexInputWrapper
- extends IndexInput
Used by MockDirectoryWrapper to create an input stream that
keeps track of when it's been closed.
MockIndexInputWrapper
public MockIndexInputWrapper(MockDirectoryWrapper dir,
String name,
IndexInput delegate)
- Construct an empty output buffer.
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Specified by:
close
in class IndexInput
- Throws:
IOException
clone
public MockIndexInputWrapper clone()
- Overrides:
clone
in class IndexInput
getFilePointer
public long getFilePointer()
- Specified by:
getFilePointer
in class IndexInput
seek
public void seek(long pos)
throws IOException
- Specified by:
seek
in class IndexInput
- Throws:
IOException
length
public long length()
- Specified by:
length
in class IndexInput
readByte
public byte readByte()
throws IOException
- Specified by:
readByte
in class DataInput
- Throws:
IOException
readBytes
public void readBytes(byte[] b,
int offset,
int len)
throws IOException
- Specified by:
readBytes
in class DataInput
- Throws:
IOException
readBytes
public void readBytes(byte[] b,
int offset,
int len,
boolean useBuffer)
throws IOException
- Overrides:
readBytes
in class DataInput
- Throws:
IOException
readShort
public short readShort()
throws IOException
- Overrides:
readShort
in class DataInput
- Throws:
IOException
readInt
public int readInt()
throws IOException
- Overrides:
readInt
in class DataInput
- Throws:
IOException
readLong
public long readLong()
throws IOException
- Overrides:
readLong
in class DataInput
- Throws:
IOException
readString
public String readString()
throws IOException
- Overrides:
readString
in class DataInput
- Throws:
IOException
readStringStringMap
public Map<String,String> readStringStringMap()
throws IOException
- Overrides:
readStringStringMap
in class DataInput
- Throws:
IOException
readVInt
public int readVInt()
throws IOException
- Overrides:
readVInt
in class DataInput
- Throws:
IOException
readVLong
public long readVLong()
throws IOException
- Overrides:
readVLong
in class DataInput
- Throws:
IOException
toString
public String toString()
- Overrides:
toString
in class IndexInput
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.