public class EvioScannerV6
extends java.lang.Object
Constructor and Description |
---|
EvioScannerV6(FileFrameV6 component,
org.jlab.coda.eventViewer.MyTableModel dataModel,
org.jlab.coda.eventViewer.MyRenderer dataRenderer,
org.jlab.coda.eventViewer.FileFrameV6.ErrorScanTask errorTask)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
checkDataTypeAndPadding(int dataTypeVal,
int pad)
Check the given data type and padding to see if they're
valid (or non-null) values and consistent with each other.
|
static boolean |
dataTypeHasPadding(org.jlab.coda.jevio.DataType type)
Is the given data type one that can have non-zero padding?
|
java.util.ArrayList<BlockHeaderV6> |
getBlockErrorNodes()
Get the list of BlockHeaderV6 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 EvioScannerV6(FileFrameV6 component, org.jlab.coda.eventViewer.MyTableModel dataModel, org.jlab.coda.eventViewer.MyRenderer dataRenderer, org.jlab.coda.eventViewer.FileFrameV6.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<BlockHeaderV6> getBlockErrorNodes()
public boolean hasError()
true
if there were errors, else false
.public java.lang.String checkDataTypeAndPadding(int dataTypeVal, int pad)
dataTypeVal
- data type as integer.pad
- padding of data.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