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