public class IOTester extends Object
RandomAccessInputStream's
 efficiency in various cases.
 | 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. | 
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 © 2014 Open Microscopy Environment