Top Description Methods
org.apache.hc.core5.http.nio

public Interface StreamChannel<T extends java.nio.Buffer>

Known Direct Subinterfaces
org.apache.hc.core5.http.nio.DataStreamChannel
Annotations
@Contract
threading:SAFE
Type Parameters
<T>
data container accepted by the channel.
Imports
java.io.IOException, java.nio.Buffer, org.apache.hc.core5.annotation.Contract, .ThreadingBehavior

Abstract data stream channel.

Implementations are expected to be thread-safe.

Since
5.0

Method Summary

Modifier and TypeMethod and Description
public void
endStream()

Terminates the underlying data stream and optionally writes a closing sequence.

public int

Returns:

The number of elements written, possibly zero
write
(T
source of data
src
)

Writes data from the data container into the underlying data stream.

Method Detail

endStreamback to summary
public void endStream() throws IOException

Terminates the underlying data stream and optionally writes a closing sequence.

writeback to summary
public int write(T src) throws IOException

Writes data from the data container into the underlying data stream.

Parameters
src:T

source of data

Returns:int

The number of elements written, possibly zero