org.mevenide.properties.writer
Class DefaultPropertiesWriter

java.lang.Object
  extended byorg.mevenide.properties.writer.DefaultPropertiesWriter
All Implemented Interfaces:
IPropertiesWriter

public class DefaultPropertiesWriter
extends java.lang.Object
implements IPropertiesWriter

A basic implementation of IPropertiesWriter, ignores anything that the file contains and overwrites it with new values, also doesn't do any placement optimalizations.

Author:
Milos Kleint

Field Summary
static java.lang.String HEADER
           
 
Constructor Summary
DefaultPropertiesWriter()
          Creates a new instance of BasicPropertiesWriter
 
Method Summary
 void marshall(java.io.OutputStream output, java.util.Properties props, java.io.InputStream currentContent)
          writes the properties to outputstream, considering the currentcontent if not null andthe implementation is capable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HEADER

public static final java.lang.String HEADER
See Also:
Constant Field Values
Constructor Detail

DefaultPropertiesWriter

public DefaultPropertiesWriter()
Creates a new instance of BasicPropertiesWriter

Method Detail

marshall

public void marshall(java.io.OutputStream output,
                     java.util.Properties props,
                     java.io.InputStream currentContent)
              throws java.io.IOException
Description copied from interface: IPropertiesWriter
writes the properties to outputstream, considering the currentcontent if not null andthe implementation is capable.

Specified by:
marshall in interface IPropertiesWriter
Parameters:
props - properties to write.
Throws:
java.io.IOException - if anything goes wrong.


Copyright © 2003-2005 The Codehaus. All Rights Reserved.