T - data container accepted by the channel.@Contract(threading=SAFE) public interface StreamChannel<T extends Buffer>
Implementations are expected to be thread-safe.
| Modifier and Type | Method and Description |
|---|---|
void |
endStream()
Terminates the underlying data stream and optionally writes
a closing sequence.
|
int |
write(T src)
Writes data from the data container into the underlying data stream.
|
int write(T src) throws IOException
src - source of dataIOExceptionvoid endStream()
throws IOException
IOExceptionCopyright © 2005–2021 The Apache Software Foundation. All rights reserved.