public class LCIOEventSource
extends org.freehep.record.source.AbstractRecordSource
Modifier and Type | Field and Description |
---|---|
private long |
_index |
private long[] |
_size |
private boolean |
atEnd |
private boolean |
atStart |
private EventHeader |
currentEvent |
private int |
currentFile |
private List<File> |
files |
private LCIOReader |
reader |
Constructor and Description |
---|
LCIOEventSource(File file)
Create an LCIO event source for reading a single LCIO file
|
LCIOEventSource(FileList list)
Create an LCIO event source that will read a set of LCIO files
|
LCIOEventSource(String name,
List<File> files)
Create an LCIO event source for reading a set of LCIO files.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
current() |
void |
finalize() |
long |
getCurrentIndex() |
Object |
getCurrentRecord() |
Class<?> |
getRecordClass() |
boolean |
hasCurrent() |
boolean |
hasIndex(long index) |
boolean |
hasNext() |
boolean |
hasPrevious() |
boolean |
hasRewind() |
boolean |
hasShift(long numberOfRecords) |
void |
jump(long index) |
void |
next() |
void |
previous() |
void |
releaseRecord(Object obj) |
void |
rewind() |
void |
shift(long numberOfRecords) |
boolean |
supportsCurrent() |
boolean |
supportsIndex() |
boolean |
supportsNext() |
boolean |
supportsPrevious() |
boolean |
supportsRewind() |
boolean |
supportsShift() |
private boolean atEnd
private boolean atStart
private LCIOReader reader
private EventHeader currentEvent
private int currentFile
private long _index
private long[] _size
public LCIOEventSource(File file) throws IOException
file
- The file to readIOException
public LCIOEventSource(String name, List<File> files) throws IOException
name
- The name of the collection of event filesfiles
- The list of files to read.IOException
public LCIOEventSource(FileList list) throws FileNotFoundException, IOException
list
- The list of files to openFileNotFoundException
IOException
public Object getCurrentRecord() throws IOException
IOException
public long getCurrentIndex()
getCurrentIndex
in interface org.freehep.record.source.RecordSource
getCurrentIndex
in class org.freehep.record.source.AbstractRecordSource
public Class<?> getRecordClass()
getRecordClass
in interface org.freehep.record.source.RecordSource
getRecordClass
in class org.freehep.record.source.AbstractRecordSource
public boolean supportsCurrent()
supportsCurrent
in interface org.freehep.record.source.RecordSource
supportsCurrent
in class org.freehep.record.source.AbstractRecordSource
public boolean supportsNext()
supportsNext
in interface org.freehep.record.source.RecordSource
supportsNext
in class org.freehep.record.source.AbstractRecordSource
public boolean supportsPrevious()
supportsPrevious
in interface org.freehep.record.source.RecordSource
supportsPrevious
in class org.freehep.record.source.AbstractRecordSource
public boolean supportsIndex()
supportsIndex
in interface org.freehep.record.source.RecordSource
supportsIndex
in class org.freehep.record.source.AbstractRecordSource
public boolean supportsShift()
supportsShift
in interface org.freehep.record.source.RecordSource
supportsShift
in class org.freehep.record.source.AbstractRecordSource
public boolean supportsRewind()
supportsRewind
in interface org.freehep.record.source.RecordSource
supportsRewind
in class org.freehep.record.source.AbstractRecordSource
public boolean hasCurrent()
hasCurrent
in interface org.freehep.record.source.RecordSource
hasCurrent
in class org.freehep.record.source.AbstractRecordSource
public boolean hasNext()
hasNext
in interface org.freehep.record.source.RecordSource
hasNext
in class org.freehep.record.source.AbstractRecordSource
public boolean hasPrevious()
hasPrevious
in interface org.freehep.record.source.RecordSource
hasPrevious
in class org.freehep.record.source.AbstractRecordSource
public boolean hasIndex(long index)
hasIndex
in interface org.freehep.record.source.RecordSource
hasIndex
in class org.freehep.record.source.AbstractRecordSource
public boolean hasShift(long numberOfRecords)
hasShift
in interface org.freehep.record.source.RecordSource
hasShift
in class org.freehep.record.source.AbstractRecordSource
public boolean hasRewind()
hasRewind
in interface org.freehep.record.source.RecordSource
hasRewind
in class org.freehep.record.source.AbstractRecordSource
public void current() throws IOException, org.freehep.record.source.NoSuchRecordException
current
in interface org.freehep.record.source.RecordSource
current
in class org.freehep.record.source.AbstractRecordSource
IOException
org.freehep.record.source.NoSuchRecordException
public void next() throws IOException, org.freehep.record.source.NoSuchRecordException
next
in interface org.freehep.record.source.RecordSource
next
in class org.freehep.record.source.AbstractRecordSource
IOException
org.freehep.record.source.NoSuchRecordException
public void previous() throws IOException, org.freehep.record.source.NoSuchRecordException
previous
in interface org.freehep.record.source.RecordSource
previous
in class org.freehep.record.source.AbstractRecordSource
IOException
org.freehep.record.source.NoSuchRecordException
public void jump(long index) throws IOException, org.freehep.record.source.NoSuchRecordException
jump
in interface org.freehep.record.source.RecordSource
jump
in class org.freehep.record.source.AbstractRecordSource
IOException
org.freehep.record.source.NoSuchRecordException
public void shift(long numberOfRecords) throws IOException, org.freehep.record.source.NoSuchRecordException
shift
in interface org.freehep.record.source.RecordSource
shift
in class org.freehep.record.source.AbstractRecordSource
IOException
org.freehep.record.source.NoSuchRecordException
public void rewind() throws IOException
rewind
in interface org.freehep.record.source.RecordSource
rewind
in class org.freehep.record.source.AbstractRecordSource
IOException
public void close() throws IOException
close
in interface org.freehep.record.source.RecordSource
close
in class org.freehep.record.source.AbstractRecordSource
IOException
public void releaseRecord(Object obj)
Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.