public class EvioScanner
extends java.lang.Object
Constructor and Description |
---|
EvioScanner(FileFrameBig component,
org.jlab.coda.eventViewer.MyTableModel dataModel,
org.jlab.coda.eventViewer.MyRenderer dataRenderer,
org.jlab.coda.eventViewer.FileFrameBig.ErrorScanTask errorTask)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
dataTypeHasPadding(org.jlab.coda.jevio.DataType type)
Is the given data type one that can have non-zero padding?
|
java.util.ArrayList<BlockHeader> |
getBlockErrorNodes()
Get the list of BlockHeader objects containing evio errors.
|
boolean |
hasError()
Did the scan of the file show any evio errors?
|
boolean |
scanFileForErrors()
Scan the file for evio errors.
|
public EvioScanner(FileFrameBig component, org.jlab.coda.eventViewer.MyTableModel dataModel, org.jlab.coda.eventViewer.MyRenderer dataRenderer, org.jlab.coda.eventViewer.FileFrameBig.ErrorScanTask errorTask) throws org.jlab.coda.jevio.EvioException
component
- window that displays a file's bytes as hex, 32 bit integers.dataModel
- data table model - object with file memory maps.dataRenderer
- data table render.errorTask
- object doing file scan in background,
use to update its progress.org.jlab.coda.jevio.EvioException
- if endianness is wrong, version is wrong,
or too little data to read block headerpublic static boolean dataTypeHasPadding(org.jlab.coda.jevio.DataType type)
type
- evio data typetrue
if the data type can have non-zero padding, else false
.public java.util.ArrayList<BlockHeader> getBlockErrorNodes()
public boolean hasError()
true
if there were errors, else false
.public boolean scanFileForErrors() throws org.jlab.coda.jevio.EvioException
true if error occurred
, else false
org.jlab.coda.jevio.EvioException
- if file cannot even be attempted to be parsed