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 dataIOException - in case of an I/O error.void endStream()
throws IOException
IOException - in case of an I/O error.Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.