public static class Properties.PropertiesWriter extends FilterWriter
out
Constructor and Description |
---|
Properties.PropertiesWriter(Writer writer)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
writeln(String s)
Helper method for writing a line with the platform specific line
ending.
|
void |
writeProperty(String key,
String value)
Writes the given property and its value.
|
public Properties.PropertiesWriter(Writer writer)
writer
- a Writer object providing the underlying streampublic void writeProperty(String key, String value) throws IOException
key
- the property keyvalue
- the property valueIOException
- if an error occurspublic void writeln(String s) throws IOException
s
- the content of the line (may be null)IOException
- if an error occursCopyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.