Class StreamPBIntoOutput
java.lang.Object
org.epics.archiverappliance.utils.ui.StreamPBIntoOutput
Utility class with method to push an EventStream into an OutputStream
- Author:
- mshankar
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intstreamPBIntoOutputStream(EventStream st, OutputStream os, Instant start, Instant end) Push the events in st into the output stream os.static voidWrite a header only - this is sometimes used to communicate the latest copy of the meta-fields (EGU etc) from the engine to the client even if we have no data in the engine.
-
Constructor Details
-
StreamPBIntoOutput
public StreamPBIntoOutput()
-
-
Method Details
-
streamPBIntoOutputStream
public static int streamPBIntoOutputStream(EventStream st, OutputStream os, Instant start, Instant end) throws IOException Push the events in st into the output stream os. This is highly simplistic and does not accommodate year transitions, pv transitions and such.- Parameters:
st- EventStreamos- OutputStreamstart- The start time; could be null in which case we begin at the very beginningend- The end time; could be null in which case we end at the very end- Returns:
- totalEvents
- Throws:
IOException-
-
writeHeaderOnly
public static void writeHeaderOnly(OutputStream os, RemotableEventStreamDesc desc) throws IOException Write a header only - this is sometimes used to communicate the latest copy of the meta-fields (EGU etc) from the engine to the client even if we have no data in the engine.- Parameters:
os- OutputStreamdesc- RemotableEventStreamDesc- Throws:
IOException-
-