public static class Properties.PropertiesWriter
extends java.io.FilterWriter
| Constructor | Description |
|---|---|
PropertiesWriter(java.io.Writer writer,
boolean typed) |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
writeln(java.lang.String s) |
Helper method for writing a line with the platform specific line
ending.
|
void |
writeProperty(java.lang.String key,
java.lang.String value) |
Writes the given property and its value.
|
public PropertiesWriter(java.io.Writer writer,
boolean typed)
writer - a Writer object providing the underlying streampublic void writeProperty(java.lang.String key,
java.lang.String value)
throws java.io.IOException
key - the property keyvalue - the property valuejava.io.IOException - if an error occurspublic void writeln(java.lang.String s)
throws java.io.IOException
s - the content of the line (may be null)java.io.IOException - if an error occurs