T - the type of objects to readpublic class StreamReader<T> extends Object implements Closeable
| Constructor and Description |
|---|
StreamReader(SSEDecoder decoder,
SSEParser<T> parser) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
isClosed()
Check if the stream is closed.
|
T |
recv()
Receive the next item from the stream.
|
public StreamReader(SSEDecoder decoder, SSEParser<T> parser)
public T recv() throws Exception
Exception - if reading or parsing failspublic boolean isClosed()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2026. All rights reserved.