public class IOTester
extends java.lang.Object
RandomAccessInputStream
's
efficiency in various cases.
Constructor and Description |
---|
IOTester() |
Modifier and Type | Method and Description |
---|---|
byte[] |
createData() |
void |
deleteData(java.lang.String filename) |
static void |
main(java.lang.String[] args) |
void |
saveData(java.lang.String filename,
byte[] data) |
long |
testBlock(java.lang.String filename,
int blockSize)
Searches for the divider tag in blocks of the given size.
|
void |
testIO() |
long |
testSequential(java.lang.String filename)
Searches for the divider tag using repeated readChar() calls.
|
public byte[] createData()
public void saveData(java.lang.String filename, byte[] data) throws java.io.IOException
java.io.IOException
public long testSequential(java.lang.String filename) throws java.io.IOException
java.io.IOException
public long testBlock(java.lang.String filename, int blockSize) throws java.io.IOException
java.io.IOException
public void deleteData(java.lang.String filename)
public void testIO() throws java.io.IOException
java.io.IOException
public static void main(java.lang.String[] args) throws java.io.IOException
java.io.IOException
Copyright © 2014 Open Microscopy Environment