|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jlab.coda.jevio.EventWriter
public class EventWriter
An EventWriter object is used for writing events to a file.
Constructor Summary | |
---|---|
EventWriter(java.io.File file)
Creates an event writer for writing to a file. |
|
EventWriter(java.io.File file,
int blockSize)
Create an EventWriter for writing events to a file. |
|
EventWriter(java.io.File file,
int blockSize,
boolean okToDelete)
Create an EventWriter for writing events to a file. |
|
EventWriter(java.lang.String filename)
Creates an event writer for writing to a file. |
Method Summary | |
---|---|
void |
close()
Close the underlying data output stream, and with it the file. |
static void |
main(java.lang.String[] args)
Main program for testing. |
void |
writeEvent(EvioBank bank)
Write a bank to the file in evio version 2 format. |
void |
writeEvent(EvioBank bank,
int version)
Write a to the file. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EventWriter(java.io.File file) throws EvioException
file
- the file to write to. Will be created.EvioException
public EventWriter(java.lang.String filename) throws EvioException
filename
- name of the file to write to. Will be created.EvioException
public EventWriter(java.io.File file, int blockSize) throws EvioException
EventWriter
for writing events to a file.
file
- the file to write to. Will be created.blockSize
- the blocksize to use. A typical number is 8192. Must be a multiple of 256 with a
max value of 32768.
EvioException
public EventWriter(java.io.File file, int blockSize, boolean okToDelete) throws EvioException
EventWriter
for writing events to a file.
file
- the file to write to. Will be created.blockSize
- the blocksize to use. A typical number is 8192. Must be a multiple of 256 with a
max value of 32768.okToDelete
- if true
and the file already exists, an attempt will be made to delete the existing file.
Appending to an existing event file is not supported at this time.
EvioException
Method Detail |
---|
public void close()
public void writeEvent(EvioBank bank, int version) throws EvioException
bank
- the bank to write.version
- the evio version number which determines output file format.
EvioException
public void writeEvent(EvioBank bank) throws EvioException
bank
- the bank to write.
EvioException
public static void main(java.lang.String[] args)
args
- ignored command line arguments.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |