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.
Examples:
auto buf = new Array(200);
auto input = new MapInput!(char)(buf);
auto output = new MapOutput!(char)(buf);
const(char)[][char[]] map;
map["foo"] = "bar";
map["foo2"] = "bar2";
output.append(map).flush();
map = map.init;
input.load (map);
assert (map["foo"] == "bar");
assert (map["foo2"] == "bar2");
- this(OutputStream stream, const(T)[] newline = NL);
- Propagate ctor to superclass.
- MapOutput newline();
- Append a newline to the provided stream.
- MapOutput comment(const(T)[] text);
- Append a comment to the provided stream.
- MapOutput append(const(T)[] name, const(T)[] value);
- Append name & value to the provided stream.
- MapOutput append(const(T)[][T[]] properties);
- Append AA properties to the provided stream.