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 TypeMethodDescriptionvoidclose()protected voidlonggetName()voidwriteBytes(byte[] b, int offset, int length) Methods inherited from class org.apache.lucene.store.FilterIndexOutput
getDelegate, getFilePointer, unwrap, writeByteMethods inherited from class org.apache.lucene.store.IndexOutput
alignFilePointer, alignOffset, toStringMethods inherited from class org.apache.lucene.store.DataOutput
copyBytes, writeBytes, writeGroupVInts, writeGroupVInts, writeInt, writeLong, writeMapOfStrings, writeSetOfStrings, writeShort, writeString, writeVInt, writeVLong, writeZInt, writeZLong
-
Constructor Details
-
CorruptingIndexOutput
-
-
Method Details
-
getName
- Overrides:
getNamein classIndexOutput
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classFilterIndexOutput- Throws:
IOException
-
corruptFile
- Throws:
IOException
-
getChecksum
- Overrides:
getChecksumin classFilterIndexOutput- Throws:
IOException
-
writeBytes
- Overrides:
writeBytesin classFilterIndexOutput- Throws:
IOException
-