Package org.apache.lucene.tests.store
Class MockIndexInputWrapper
java.lang.Object
org.apache.lucene.store.DataInput
org.apache.lucene.store.IndexInput
org.apache.lucene.tests.store.MockIndexInputWrapper
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Cloneable
Used by MockDirectoryWrapper to create an input stream that keeps track of when it's been closed.
-
Constructor Summary
ConstructorDescriptionMockIndexInputWrapper
(MockDirectoryWrapper dir, String name, IndexInput delegate, MockIndexInputWrapper parent) Sole constructor -
Method Summary
Modifier and TypeMethodDescriptionclone()
void
close()
long
long
length()
byte
readByte()
void
readBytes
(byte[] b, int offset, int len) void
readBytes
(byte[] b, int offset, int len, boolean useBuffer) void
readFloats
(float[] floats, int offset, int len) int
readInt()
long
readLong()
short
int
readVInt()
long
int
readZInt()
long
void
seek
(long pos) void
skipBytes
(long numBytes) toString()
Methods inherited from class org.apache.lucene.store.IndexInput
getFullSliceDescription, randomAccessSlice
-
Constructor Details
-
MockIndexInputWrapper
public MockIndexInputWrapper(MockDirectoryWrapper dir, String name, IndexInput delegate, MockIndexInputWrapper parent) Sole constructor
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in classIndexInput
- Throws:
IOException
-
clone
- Overrides:
clone
in classIndexInput
-
slice
- Specified by:
slice
in classIndexInput
- Throws:
IOException
-
getFilePointer
public long getFilePointer()- Specified by:
getFilePointer
in classIndexInput
-
seek
- Specified by:
seek
in classIndexInput
- Throws:
IOException
-
length
public long length()- Specified by:
length
in classIndexInput
-
readByte
- Specified by:
readByte
in classDataInput
- Throws:
IOException
-
readBytes
- Specified by:
readBytes
in classDataInput
- Throws:
IOException
-
readBytes
- Overrides:
readBytes
in classDataInput
- Throws:
IOException
-
readFloats
- Overrides:
readFloats
in classDataInput
- Throws:
IOException
-
readShort
- Overrides:
readShort
in classDataInput
- Throws:
IOException
-
readInt
- Overrides:
readInt
in classDataInput
- Throws:
IOException
-
readLong
- Overrides:
readLong
in classDataInput
- Throws:
IOException
-
readString
- Overrides:
readString
in classDataInput
- Throws:
IOException
-
readVInt
- Overrides:
readVInt
in classDataInput
- Throws:
IOException
-
readVLong
- Overrides:
readVLong
in classDataInput
- Throws:
IOException
-
readZInt
- Overrides:
readZInt
in classDataInput
- Throws:
IOException
-
readZLong
- Overrides:
readZLong
in classDataInput
- Throws:
IOException
-
skipBytes
- Overrides:
skipBytes
in classIndexInput
- Throws:
IOException
-
readMapOfStrings
- Overrides:
readMapOfStrings
in classDataInput
- Throws:
IOException
-
readSetOfStrings
- Overrides:
readSetOfStrings
in classDataInput
- Throws:
IOException
-
toString
- Overrides:
toString
in classIndexInput
-