OutputFilter

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

Constructors

this
this(OutputStream sink)

Attach to the provided stream.

Members

Functions

close
void close()

Close the output.

conduit
IConduit conduit()

Return the hosting conduit.

copy
OutputStream copy(InputStream src, size_t max)

Transfer the content of another conduit to this one. Returns a reference to this class, or throws IOException on failure.

flush
IOStream flush()

Emit/purge buffered content.

output
OutputStream output()

Return the upstream host of this filter.

seek
long seek(long offset, Anchor anchor)

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

write
size_t write(const(void)[] src)

Write to conduit from a source array. The provided src content will be written to the conduit.

Variables

sink
OutputStream sink;
Undocumented in source.

Meta