Package loci.tests
Class IOTester
java.lang.Object
loci.tests.IOTester
A class for testing
RandomAccessInputStream's
efficiency in various cases.- Author:
- Curtis Rueden ctrueden at wisc.edu
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]voiddeleteData(String filename) static voidvoidlongSearches for the divider tag in blocks of the given size.voidtestIO()longtestSequential(String filename) Searches for the divider tag using repeated readChar() calls.
-
Constructor Details
-
IOTester
public IOTester()
-
-
Method Details
-
createData
public byte[] createData() -
saveData
- Throws:
IOException
-
testSequential
Searches for the divider tag using repeated readChar() calls.- Throws:
IOException
-
testBlock
Searches for the divider tag in blocks of the given size.- Throws:
IOException
-
deleteData
-
testIO
- Throws:
IOException
-
main
- Throws:
IOException
-