Class StreamPBIntoOutput
- java.lang.Object
-
- org.epics.archiverappliance.utils.ui.StreamPBIntoOutput
-
public class StreamPBIntoOutput extends Object
Utility class with method to push an EventStream into an OutputStream- Author:
- mshankar
-
-
Constructor Summary
Constructors Constructor Description StreamPBIntoOutput()
-
Method Summary
Modifier and Type Method Description static int
streamPBIntoOutputStream(EventStream st, OutputStream os, Timestamp start, Timestamp end)
Push the events in st into the output stream os.static void
writeHeaderOnly(OutputStream os, RemotableEventStreamDesc desc)
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.
-
-
-
Method Detail
-
streamPBIntoOutputStream
public static int streamPBIntoOutputStream(EventStream st, OutputStream os, Timestamp start, Timestamp 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
-
-
-