|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.io.Writer
java.io.FilterWriter
org.apache.commons.configuration.PropertiesConfiguration.PropertiesWriter
This class is used to write properties lines.
| Field Summary |
| Fields inherited from class java.io.FilterWriter |
out |
| Fields inherited from class java.io.Writer |
lock |
| Constructor Summary | |
PropertiesConfiguration.PropertiesWriter(Writer writer,
char delimiter)
Constructor. |
|
| Method Summary | |
void |
writeComment(String comment)
Write a comment. |
void |
writeln(String s)
Helper method for writing a line with the platform specific line ending. |
void |
writeProperty(String key,
List values)
Write a property. |
void |
writeProperty(String key,
Object value)
Write a property. |
void |
writeProperty(String key,
Object value,
boolean forceSingleLine)
Writes the given property and its value. |
| Methods inherited from class java.io.FilterWriter |
close, flush, write, write, write |
| Methods inherited from class java.io.Writer |
write, write |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PropertiesConfiguration.PropertiesWriter(Writer writer,
char delimiter)
writer - a Writer object providing the underlying streamdelimiter - the delimiter character for multi-valued properties| Method Detail |
public void writeProperty(String key,
Object value)
throws IOException
key - the key of the propertyvalue - the value of the property
IOException - if an I/O error occurs
public void writeProperty(String key,
List values)
throws IOException
key - The key of the propertyvalues - The array of values of the property
IOException - if an I/O error occurs
public void writeProperty(String key,
Object value,
boolean forceSingleLine)
throws IOException
forceSingleLine flag is evaluated. If it is
set, all values are written on a single line using the list delimiter
as separator.
key - the property keyvalue - the property valueforceSingleLine - the "force single line" flag
IOException - if an error occurs
public void writeComment(String comment)
throws IOException
comment - the comment to write
IOException - if an I/O error occurs
public void writeln(String s)
throws IOException
s - the content of the line (may be null)
IOException - if an error occurs
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||