org.eclipse.core.internal.dtree
Class DataTreeWriter

java.lang.Object
  extended by org.eclipse.core.internal.dtree.DataTreeWriter

public class DataTreeWriter
extends java.lang.Object

Class for writing a single data tree (no parents) to an output stream.


Field Summary
static int D_INFINITE
          Constant representing infinite recursion depth
 
Constructor Summary
DataTreeWriter(IDataFlattener f)
          Creates a new DeltaTreeWriter.
 
Method Summary
 void writeTree(AbstractDataTree tree, org.eclipse.core.runtime.IPath path, int depth, java.io.DataOutput output)
          Writes the given AbstractDataTree to the given stream.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

D_INFINITE

public static final int D_INFINITE
Constant representing infinite recursion depth

See Also:
Constant Field Values
Constructor Detail

DataTreeWriter

public DataTreeWriter(IDataFlattener f)
Creates a new DeltaTreeWriter.

Method Detail

writeTree

public void writeTree(AbstractDataTree tree,
                      org.eclipse.core.runtime.IPath path,
                      int depth,
                      java.io.DataOutput output)
               throws java.io.IOException
Writes the given AbstractDataTree to the given stream. This writes a single DataTree or DeltaDataTree, ignoring parent trees.

Parameters:
path - Only writes data for the subtree rooted at the given path, and for all nodes directly between the root and the subtree.
depth - In the subtree rooted at the given path, only write up to this depth. A depth of infinity is given by the constant D_INFINITE.
Throws:
java.io.IOException