public class EvioFileTest
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
EvioFileTest.TestResult
This enum is used for file testing.
|
Constructor and Description |
---|
EvioFileTest() |
Modifier and Type | Method and Description |
---|---|
static EvioFileTest.TestResult |
parseEventsTest(EvioReader reader,
int num)
Tests whether we can parse events from the file.
|
static EvioFileTest.TestResult |
readAllBlockHeadersTest(EvioReader reader)
Tests whether we can look through the file and find all the block headers.
|
static EvioFileTest.TestResult |
readAllEventsTest(EvioReader reader)
Tests whether we can look through the file read all the events.
|
static int |
totalBlockCount(EvioReader reader)
Get a total count of the number of physical records.
|
public static int totalBlockCount(EvioReader reader)
reader
- reader of the file to be processed.public static EvioFileTest.TestResult readAllBlockHeadersTest(EvioReader reader)
reader
- reader of the file to be processed.public static EvioFileTest.TestResult readAllEventsTest(EvioReader reader)
reader
- reader of the file to be processed.TestResult.PASS
or TestResult.FAIL
.public static EvioFileTest.TestResult parseEventsTest(EvioReader reader, int num)
reader
- reader of the file to be processed.num
- the number to parse. Will try to parse this many (unless it runs out.) Use -1 to parse all events.
Note: if num
is greater than the number of events in the file, it doesn't constitute an
error.TestResult.PASS
or TestResult.FAIL
.