Struct java_properties::PropertiesWriter
[−]
[src]
pub struct PropertiesWriter<W: Write> { // some fields omitted }
Writes to a properties file.
Methods
impl<W: Write> PropertiesWriter<W>
[src]
fn new(writer: W) -> Self
Writes to the given Write
stream.
fn write_comment(&mut self, comment: &str) -> Result<(), PropertiesError>
Writes a comment to the file.
fn write(&mut self, key: &str, value: &str) -> Result<(), PropertiesError>
Writes a key/value pair to the file.
fn flush(&mut self) -> Result<(), PropertiesError>
Flushes the underlying stream.