BufferedInput.create

Attempt to share an upstream Buffer, and create an instance where there's not one available.

If an upstream Buffer instances is visible, it will be shared. Otherwise, a new instance is created based upon the bufferSize exposed by the stream endpoint (conduit).

class BufferedInput
static
InputBuffer
create
(
InputStream stream
)

Parameters

stream InputStream

An input stream.

Meta