com.arsdigita.util
Class JavaPropertyWriter

java.lang.Object
  extended bycom.arsdigita.util.JavaPropertyWriter
All Implemented Interfaces:
ParameterWriter

public class JavaPropertyWriter
extends Object
implements ParameterWriter

Subject to change. An implementation of ParameterWriter that uses standard Java properties to store values.

Version:
$Id: //core-platform/dev/src/com/arsdigita/util/JavaPropertyWriter.java#5 $
Author:
Justin Ross <jross@redhat.com>
See Also:
ParameterWriter, JavaPropertyReader

Field Summary
static String versionId
           
 
Constructor Summary
JavaPropertyWriter(Properties props)
          Constructs a parameter writer that uses props.
 
Method Summary
 void store(OutputStream out)
          Tells the internal property object to store its values to out.
 String toString()
          Returns a String representation of this object.
 void write(Parameter param, String value)
          Writes a String value back for a param.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values
Constructor Detail

JavaPropertyWriter

public JavaPropertyWriter(Properties props)
Constructs a parameter writer that uses props.

Parameters:
props - The Properties object that stores property values; it cannot be null
Method Detail

store

public final void store(OutputStream out)
Tells the internal property object to store its values to out.

Parameters:
out - The OutputStream to send the saved parameters to; it cannot be null

write

public final void write(Parameter param,
                        String value)
Writes a String value back for a param.

Specified by:
write in interface ParameterWriter
Parameters:
param - The Parameter whose value is to be written; it cannot be null
value - The String value to write out; it can be null

toString

public String toString()
Returns a String representation of this object.

Returns:
super.toString() + "," + properties.size()


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2337 UTC