Class PBEventFileWriter
java.lang.Object
edu.stanford.slac.archiverappliance.plain.pb.PBEventFileWriter
- All Implemented Interfaces:
EventFileWriter,AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionPBEventFileWriter(String pvName, Path path, ArchDBRTypes type, short year) PBEventFileWriter(String pvName, Path path, ArchDBRTypes type, short year, boolean append) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface edu.stanford.slac.archiverappliance.plain.EventFileWriter
writeStreamToFile
-
Constructor Details
-
PBEventFileWriter
public PBEventFileWriter(String pvName, Path path, ArchDBRTypes type, short year, boolean append) throws IOException - Throws:
IOException
-
PBEventFileWriter
public PBEventFileWriter(String pvName, Path path, ArchDBRTypes type, short year) throws IOException - Throws:
IOException
-
-
Method Details
-
append
Description copied from interface:EventFileWriterAppend a single event to the currently open file.- Specified by:
appendin interfaceEventFileWriter- Parameters:
event- The event to append- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceEventFileWriter- Throws:
IOException
-