org.apache.commons.configuration
Class BasePropertiesConfiguration.PropertiesWriter

java.lang.Object
  extended byjava.io.Writer
      extended byjava.io.OutputStreamWriter
          extended byjava.io.FileWriter
              extended byorg.apache.commons.configuration.BasePropertiesConfiguration.PropertiesWriter
Enclosing class:
BasePropertiesConfiguration

class BasePropertiesConfiguration.PropertiesWriter
extends java.io.FileWriter

This class is used to write properties lines.


Field Summary
 
Fields inherited from class java.io.OutputStreamWriter
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
BasePropertiesConfiguration.PropertiesWriter(java.io.File file)
          Constructor.
 
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
 

Constructor Detail

BasePropertiesConfiguration.PropertiesWriter

public BasePropertiesConfiguration.PropertiesWriter(java.io.File file)
                                             throws java.io.IOException
Constructor.

Parameters:
file - the proerties file
Throws:
java.io.IOException
Method Detail

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