public static class Properties.PropertiesWriter extends FilterWriter
out| Constructor and Description |
|---|
PropertiesWriter(Writer writer,
boolean typed)
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 PropertiesWriter(Writer writer, boolean typed)
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–2021 The Apache Software Foundation. All rights reserved.