net.dpml.state
Class StateEncoder

java.lang.Object
  extended by net.dpml.state.StateEncoder

public class StateEncoder
extends Object

Construct a state graph.


Constructor Summary
StateEncoder()
           
 
Method Summary
 void export(State state, OutputStream output)
          Externalize the part to XML.
 void writeState(Writer writer, State state, String pad)
          Write the state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StateEncoder

public StateEncoder()
Method Detail

export

public void export(State state,
                   OutputStream output)
            throws IOException
Externalize the part to XML.

Parameters:
state - the state graph to externalize
output - the output stream
Throws:
IOException - if an IO error occurs

writeState

public void writeState(Writer writer,
                       State state,
                       String pad)
                throws IOException
Write the state.

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