net.dpml.util
Interface Encoder

All Known Implementing Classes:
ComponentEncoder

public interface Encoder

Interface implemented by generic encoders.


Method Summary
 void encode(Writer writer, Object object, String pad)
          Externalize a object to XML.
 

Method Detail

encode

void encode(Writer writer,
            Object object,
            String pad)
            throws IOException
Externalize a object to XML.

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