net.dpml.state
Class StateEncoder
java.lang.Object
net.dpml.state.StateEncoder
- public class StateEncoder
- extends Object
Construct a state graph.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StateEncoder
public StateEncoder()
export
public void export(State state,
OutputStream output)
throws IOException
- Externalize the part to XML.
- Parameters:
state
- the state graph to externalizeoutput
- 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 writerstate
- the state to externalizepad
- the pad offset
- Throws:
IOException
- if an IO error occurs