public class IOTester extends Object
RandomAccessInputStream's
efficiency in various cases.| Modifier and Type | Field and Description |
|---|---|
private static String |
ALPHANUM |
private static org.slf4j.Logger |
LOGGER |
private static long |
NUM_DOTS |
private static int |
SIZE |
private static String |
TAG |
| Constructor and Description |
|---|
IOTester() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
createData() |
void |
deleteData(String filename) |
static void |
main(String[] args) |
void |
saveData(String filename,
byte[] data) |
long |
testBlock(String filename,
int blockSize)
Searches for the divider tag in blocks of the given size.
|
void |
testIO() |
long |
testSequential(String filename)
Searches for the divider tag using repeated readChar() calls.
|
private static final org.slf4j.Logger LOGGER
private static final String TAG
private static final int SIZE
private static final long NUM_DOTS
private static final String ALPHANUM
public byte[] createData()
public void saveData(String filename, byte[] data) throws IOException
IOExceptionpublic long testSequential(String filename) throws IOException
IOExceptionpublic long testBlock(String filename, int blockSize) throws IOException
IOExceptionpublic void deleteData(String filename)
public void testIO()
throws IOException
IOExceptionpublic static void main(String[] args) throws IOException
IOExceptionCopyright © 2016 Open Microscopy Environment