org.jlab.hipo.io
Class HipoReader
- java.lang.Object
-
- org.jlab.hipo.io.HipoReader
-
public class HipoReader extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor and Description HipoReader()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidclose()intgetEventCount()HipoFileInfogetFileInfo()HipoRecordgetHeaderRecord()intgetPosition()intgetRecordCount()SchemaFactorygetSchemaFactory()java.lang.StringgetStatusString()static voidmain(java.lang.String[] args)voidopen(java.io.InputStream inStream)voidopen(java.lang.String name)Open file for reading.byte[]readEvent(int pos)HipoEventreadHipoEvent(int pos)HipoRecordreadRecord(int record)voidreadRecordIndex(java.util.List<HipoRecordHeader> index)Reads the index of the records from the file.voidshow()voidshowHeader()
-
-
-
Method Detail
-
open
public void open(java.io.InputStream inStream)
-
open
public void open(java.lang.String name)
Open file for reading. automatically reads file index in of records. the event index is not actually read.- Parameters:
name- file names to read
-
getSchemaFactory
public SchemaFactory getSchemaFactory()
-
readRecordIndex
public void readRecordIndex(java.util.List<HipoRecordHeader> index)
Reads the index of the records from the file. if problem occurs, the then the problematic record is written to the list containing corrupt records. This records will contain a string describing the problem.- Parameters:
index-
-
close
public void close()
-
readHipoEvent
public HipoEvent readHipoEvent(int pos)
-
getFileInfo
public HipoFileInfo getFileInfo()
-
readEvent
public byte[] readEvent(int pos)
-
getEventCount
public int getEventCount()
-
getPosition
public int getPosition()
-
show
public void show()
-
showHeader
public void showHeader()
-
getStatusString
public java.lang.String getStatusString()
-
getRecordCount
public int getRecordCount()
-
getHeaderRecord
public HipoRecord getHeaderRecord()
-
readRecord
public HipoRecord readRecord(int record)
-
main
public static void main(java.lang.String[] args)
-
-
DMelt 3.0 © DataMelt by jWork.ORG