com.tensegrity.gui.document.persistence
Interface DocumentWriter

All Known Implementing Classes:
GraphDocumentWriter

public interface DocumentWriter

Writer for writing document contents to an output stream

Author:
BurkhardWick

Method Summary
 boolean writeDocument(Document doc, java.io.OutputStream output)
          Writes the data from the given document into the output stream.
 

Method Detail

writeDocument

public boolean writeDocument(Document doc,
                             java.io.OutputStream output)
                      throws SerializeException,
                             WriteException
Writes the data from the given document into the output stream.

Parameters:
doc - The document to write
output - The output stream to write to
Returns:
true, if writing was successful
Throws:
SerializeException - this is thrown if serializing the document failed
WriteException - this is thrown if writing to the output stream failed
java.lang.Exception - Depending on the implementation, an exception (e.g. IOException) might be thrown


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.