org.apache.commons.configuration
Class PropertiesConfiguration.PropertiesWriter
java.lang.Object
|
+--java.io.Writer
|
+--java.io.FilterWriter
|
+--org.apache.commons.configuration.PropertiesConfiguration.PropertiesWriter
- Enclosing class:
- PropertiesConfiguration
- public static class PropertiesConfiguration.PropertiesWriter
- extends FilterWriter
This class is used to write properties lines.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertiesConfiguration.PropertiesWriter
public PropertiesConfiguration.PropertiesWriter(Writer writer,
char delimiter)
- Constructor.
- Parameters:
writer
- a Writer object providing the underlying streamdelimiter
- the delimiter character for multi-valued properties
writeProperty
public void writeProperty(String key,
Object value)
throws IOException
- Write a property.
- Parameters:
key
- the key of the propertyvalue
- the value of the property- Throws:
IOException
- if an I/O error occurs
writeProperty
public void writeProperty(String key,
List values)
throws IOException
- Write a property.
- Parameters:
key
- The key of the propertyvalues
- The array of values of the property- Throws:
IOException
- if an I/O error occurs
writeComment
public void writeComment(String comment)
throws IOException
- Write a comment.
- Parameters:
comment
- the comment to write- Throws:
IOException
- if an I/O error occurs
Copyright © 2001-2005 The Apache Software Foundation. All Rights Reserved.