MapOutput

Provides write facilities on a properties stream. That is, a file or other medium which will contain lines of text with a name=value layout.

Constructors

this
this(OutputStream stream, const(T)[] newline)

Propagate ctor to superclass.

Members

Functions

append
MapOutput append(const(T)[] name, const(T)[] value)

Append name & value to the provided stream.

append
MapOutput append(const(T)[][T[]] properties)

Append AA properties to the provided stream.

comment
MapOutput comment(const(T)[] text)

Append a comment to the provided stream.

newline
MapOutput newline()

Append a newline to the provided stream.

Inherited Members

From OutputFilter

sink
OutputStream sink;
Undocumented in source.
conduit
IConduit conduit [@property getter]

Return the hosting conduit.

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

Write to conduit from a source array. The provided src content will be written to the 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.

seek
long seek(long offset, Anchor anchor)

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

output
OutputStream output [@property getter]

Return the upstream host of this filter.

close
void close()

Close the output.

Meta