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.

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.

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.

Properties

conduit
IConduit conduit [@property getter]

Return the hosting conduit.

output
OutputStream output [@property getter]

Return the upstream host of this filter.

Variables

sink
OutputStream sink;
Undocumented in source.

Meta