Package com.onslip360
Class ServerSentEvent.SSEStream<T>
- java.lang.Object
-
- com.onslip360.ServerSentEvent.SSEStream<T>
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Iterable<ServerSentEvent<T>>
- Enclosing class:
- ServerSentEvent<T>
public static class ServerSentEvent.SSEStream<T> extends Object implements Closeable, Iterable<ServerSentEvent<T>>
-
-
Constructor Summary
Constructors Constructor Description SSEStream(InputStream is, Function<String,T> parser)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Iterator<ServerSentEvent<T>>
iterator()
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
SSEStream
public SSEStream(InputStream is, Function<String,T> parser)
-
-
Method Detail
-
iterator
public Iterator<ServerSentEvent<T>> iterator()
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
-