net.dpml.lang
Class ValueEncoder
java.lang.Object
net.dpml.lang.ValueEncoder
- public final class ValueEncoder
- extends Object
Utility used to write value instances to an output stream as XML.
- Version:
- 1.0.0
- Author:
- The Digital Product Meta Library
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ValueEncoder
public ValueEncoder()
encodeValues
public void encodeValues(Writer writer,
Value[] values,
String pad)
throws IOException
- Write an array of values to XML.
- Parameters:
writer
- the output stream writervalues
- the value arraypad
- 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 writervalue
- the valuepad
- the character offset
- Throws:
IOException
- if an IO error occurs