org.planx.xmlstore.nodes
Class InlineNodeStreamer
java.lang.Object
org.planx.xmlstore.nodes.InlineNodeStreamer
- All Implemented Interfaces:
- Streamer<Node>
public class InlineNodeStreamer
- extends Object
- implements Streamer<Node>
A Streamer of Nodes that does not use references,
but inlines each child node directly in the output. Thus, shared subtrees
will be duplicated in the output. Note, that NodeProxys will
be resolved before writing them to the output.
- Author:
- Thomas Ambus
|
Method Summary |
SystemNode |
fromStream(DataInput in)
Reads the internal state of the object from the input stream. |
void |
toStream(DataOutput out,
Node node)
Writes the internal state of the object to the output stream
in a format that can later be read by the same Streamer
using the fromStream method. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InlineNodeStreamer
public InlineNodeStreamer()
toStream
public void toStream(DataOutput out,
Node node)
throws IOException
- Description copied from interface:
Streamer
- Writes the internal state of the object to the output stream
in a format that can later be read by the same
Streamer
using the fromStream method.
- Specified by:
toStream in interface Streamer<Node>
- Throws:
IOException
fromStream
public SystemNode fromStream(DataInput in)
throws IOException
- Description copied from interface:
Streamer
- Reads the internal state of the object from the input stream.
- Specified by:
fromStream in interface Streamer<Node>
- Throws:
IOException
Copyright © 2010. All Rights Reserved.