public static class Properties.PropertiesWriter
extends java.io.FilterWriter
| Constructor and Description |
|---|
PropertiesWriter(java.io.Writer writer)
Constructor.
|
| Modifier and Type | Method and 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)
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 occursCopyright © 2006-2016 The Apache Software Foundation. All Rights Reserved.