net.dpml.lang
Class ValueEncoder

java.lang.Object
  extended bynet.dpml.lang.ValueEncoder

public final class ValueEncoder
extends Object

Utility used to write value instances to an output stream as XML.

Version:
1.0.1
Author:
Digital Product Meta Library

Constructor Summary
ValueEncoder()
           
 
Method Summary
 void encodeValue(Writer writer, Value value, String pad)
          Write a value to XML.
 void encodeValues(Writer writer, Value[] values, String pad)
          Write an array of values to XML.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueEncoder

public ValueEncoder()
Method Detail

encodeValues

public void encodeValues(Writer writer,
                         Value[] values,
                         String pad)
                  throws IOException
Write an array of values to XML.

Parameters:
writer - the output stream writer
values - the value array
pad - the character offset
Throws:
IOException - if an IO error occurs

encodeValue

public void encodeValue(Writer writer,
                        Value value,
                        String pad)
                 throws IOException
Write a value to XML.

Parameters:
writer - the output stream writer
value - the value
pad - the character offset
Throws:
IOException - if an IO error occurs