InputFilter

Base class for input stream filtering. The provided source stream should generally never be null, though some filters have a need to set this lazily.

Constructors

this
this(InputStream source)

Attach to the provided stream. The provided source stream should generally never be null, though some filters have a need to set this lazily.

Members

Functions

close
void close()

Close the input.

conduit
IConduit conduit()

Return the hosting conduit.

flush
IOStream flush()

Clear any buffered content.

input
InputStream input()

Return the upstream host of this filter.

load
void[] load(size_t max)

Load the bits from a stream, and return them all in an array. The dst array can be provided as an option, which will be expanded as necessary to consume the input.

read
size_t read(void[] dst)

Read from conduit into a target array. The provided dst will be populated with content from the conduit.

seek
long seek(long offset, Anchor anchor)

Seek on this stream. Target conduits that don't support seeking will throw an IOException.

Variables

source
InputStream source;
Undocumented in source.

Meta