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
IOException
public long testSequential(String filename) throws IOException
IOException
public long testBlock(String filename, int blockSize) throws IOException
IOException
public void deleteData(String filename)
public void testIO() throws IOException
IOException
public static void main(String[] args) throws IOException
IOException
Copyright © 2015 Open Microscopy Environment