Class InputStreamBackedEventStream
- java.lang.Object
-
- edu.stanford.slac.archiverappliance.PBOverHTTP.InputStreamBackedEventStream
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Iterable<Event>
,EventStream
,RemotableOverRaw
public class InputStreamBackedEventStream extends Object implements EventStream, RemotableOverRaw
An EventStream that is backed by an arbitrary input stream.- Author:
- mshankar
-
-
Constructor Summary
Constructors Constructor Description InputStreamBackedEventStream(InputStream is, Timestamp startTime)
InputStreamBackedEventStream(InputStream is, Timestamp startTime, RetrievalEventProcessor retrievalEventProcessor)
-
Method Summary
Modifier and Type Method Description void
close()
RemotableEventStreamDesc
getDescription()
Iterator<Event>
iterator()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
InputStreamBackedEventStream
public InputStreamBackedEventStream(InputStream is, Timestamp startTime) throws IOException
- Throws:
IOException
-
InputStreamBackedEventStream
public InputStreamBackedEventStream(InputStream is, Timestamp startTime, RetrievalEventProcessor retrievalEventProcessor) throws IOException
- Throws:
IOException
-
-
Method Detail
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
getDescription
public RemotableEventStreamDesc getDescription()
- Specified by:
getDescription
in interfaceEventStream
- Specified by:
getDescription
in interfaceRemotableOverRaw
-
-