org.apache.commons.configuration
Class BasePropertiesConfiguration.PropertiesWriter
java.lang.Object
java.io.Writer
java.io.OutputStreamWriter
java.io.FileWriter
org.apache.commons.configuration.BasePropertiesConfiguration.PropertiesWriter
- Enclosing class:
- BasePropertiesConfiguration
- class BasePropertiesConfiguration.PropertiesWriter
- extends java.io.FileWriter
This class is used to write properties lines.
Fields inherited from class java.io.OutputStreamWriter |
|
Fields inherited from class java.io.Writer |
lock |
Method Summary |
void |
writeComment(java.lang.String comment)
Write a comment. |
void |
writeProperty(java.lang.String key,
java.lang.String value)
Write a property. |
Methods inherited from class java.io.OutputStreamWriter |
close, flush, getEncoding, 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 |
BasePropertiesConfiguration.PropertiesWriter
public BasePropertiesConfiguration.PropertiesWriter(java.io.File file)
throws java.io.IOException
- Constructor.
- Parameters:
file
- the proerties file
- Throws:
java.io.IOException
writeProperty
public void writeProperty(java.lang.String key,
java.lang.String value)
throws java.io.IOException
- Write a property.
- Parameters:
key
- value
-
- Throws:
java.io.IOException
writeComment
public void writeComment(java.lang.String comment)
throws java.io.IOException
- Write a comment.
- Parameters:
comment
-
- Throws:
java.io.IOException