Package org.apache.lucene.tests.store
Class CorruptingIndexOutput
java.lang.Object
org.apache.lucene.store.DataOutput
org.apache.lucene.store.IndexOutput
org.apache.lucene.store.FilterIndexOutput
org.apache.lucene.tests.store.CorruptingIndexOutput
- All Implemented Interfaces:
Closeable
,AutoCloseable
Corrupts on bit of a file after close
-
Field Summary
Fields inherited from class org.apache.lucene.store.FilterIndexOutput
out
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
protected void
long
getName()
void
writeBytes
(byte[] b, int offset, int length) Methods inherited from class org.apache.lucene.store.FilterIndexOutput
getDelegate, getFilePointer, unwrap, writeByte
Methods inherited from class org.apache.lucene.store.IndexOutput
alignFilePointer, alignOffset, toString
Methods inherited from class org.apache.lucene.store.DataOutput
copyBytes, writeBytes, writeInt, writeLong, writeMapOfStrings, writeSetOfStrings, writeShort, writeString, writeVInt, writeVLong, writeZInt, writeZLong
-
Constructor Details
-
CorruptingIndexOutput
-
-
Method Details
-
getName
- Overrides:
getName
in classIndexOutput
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classFilterIndexOutput
- Throws:
IOException
-
corruptFile
- Throws:
IOException
-
getChecksum
- Overrides:
getChecksum
in classFilterIndexOutput
- Throws:
IOException
-
writeBytes
- Overrides:
writeBytes
in classFilterIndexOutput
- Throws:
IOException
-