public class CorruptibleIo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private boolean |
corruptData |
private int |
corruptLength |
private boolean |
corruptLog |
private int |
corruptOffset |
private static CorruptibleIo |
instance |
Modifier | Constructor and Description |
---|---|
private |
CorruptibleIo() |
Modifier and Type | Method and Description |
---|---|
byte[] |
corrupt(byte[] b,
int off,
int len)
corrupt the byte array at the specified bytes, currenly this
metods just complemetns the bits at the specified offsets.
|
static CorruptibleIo |
getInstance() |
int |
getLength() |
int |
getOffset() |
boolean |
isCorruptibleFile(java.io.File file) |
void |
setDataCorruption(boolean corrupt) |
void |
setLength(int len) |
void |
setLogCorruption(boolean corrupt) |
void |
setOffset(int off) |
private static CorruptibleIo instance
private boolean corruptLog
private boolean corruptData
private int corruptLength
private int corruptOffset
public static CorruptibleIo getInstance()
public void setLogCorruption(boolean corrupt)
public void setDataCorruption(boolean corrupt)
public void setOffset(int off)
public void setLength(int len)
public int getOffset()
public int getLength()
public boolean isCorruptibleFile(java.io.File file)
public byte[] corrupt(byte[] b, int off, int len)
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.