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