org.nodal.filesystem
Interface DocumentFormat.Encoder

Enclosing interface:
DocumentFormat

public static interface DocumentFormat.Encoder

The class that describes DocumentFormat encoders.


Method Summary
 java.io.OutputStream encode(java.io.OutputStream stream, Node root)
          Encode the document graph reached from the root Node onto the given OutputStream.
 boolean isLossless()
          Does the encoding include enough data to perfectly reconstruct the input document graph.
 

Method Detail

isLossless

public boolean isLossless()
Does the encoding include enough data to perfectly reconstruct the input document graph.


encode

public java.io.OutputStream encode(java.io.OutputStream stream,
                                   Node root)
                            throws java.io.IOException
Encode the document graph reached from the root Node onto the given OutputStream.

Parameters:
stream - The stream upon which the encoding will be written
root - The Node that is the root for this Document.
Throws:
java.io.IOException