|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthep.io.mcfio.MCFIOReader
public class MCFIOReader
A class for reading MCFIO files
Field Summary | |
---|---|
static int |
EVENTHEADER
|
static int |
EVENTTABLE
|
static int |
FILEHEADER
|
static int |
MCF_DEFAULT_TABLE_SIZE
|
static int |
MCF_XDR_F_TITLE_LENGTH
|
static int |
MCF_XDR_VERSION_LENGTH
|
Constructor Summary | |
---|---|
MCFIOReader(java.io.InputStream input)
|
|
MCFIOReader(java.lang.String file)
|
Method Summary | |
---|---|
void |
close()
|
protected MCFIOBlock |
createUserBlock(int id)
Override this method to create user defined blocks |
java.lang.String |
getComment()
Get the comment associated with the file |
java.lang.String |
getDate()
Get the date when the file was created |
int |
getNumberOfEvents()
The actual number of events on the file |
int |
getNumberOfEventsExpected()
The expected number of events in the file |
java.lang.String |
getTitle()
Get the title of the file |
MCFIOEvent |
nextEvent()
Get the next event. |
void |
rewind()
|
void |
skip(int nEvents)
Skip events |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MCF_XDR_F_TITLE_LENGTH
public static final int MCF_XDR_VERSION_LENGTH
public static final int MCF_DEFAULT_TABLE_SIZE
public static final int FILEHEADER
public static final int EVENTTABLE
public static final int EVENTHEADER
Constructor Detail |
---|
public MCFIOReader(java.lang.String file) throws java.io.IOException
java.io.IOException
public MCFIOReader(java.io.InputStream input) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public java.lang.String getComment()
public java.lang.String getDate()
public int getNumberOfEvents()
public int getNumberOfEventsExpected()
public java.lang.String getTitle()
public void close() throws java.io.IOException
java.io.IOException
public void skip(int nEvents) throws java.io.IOException
nEvents
- The number of events to skip. Must be >= 0.
java.io.IOException
public MCFIOEvent nextEvent() throws java.io.IOException
java.io.IOException
public void rewind() throws java.io.IOException
java.io.IOException
protected MCFIOBlock createUserBlock(int id) throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |