com.tensegrity.gui.document.persistence
Interface DocumentReader

All Known Implementing Classes:
GraphDocumentReader

public interface DocumentReader

Reader for building document contents from an input stream

Author:
BurkhardWick

Method Summary
 boolean readDocument(Document doc, java.io.InputStream input)
          Reads data from the input stream to build the contents of the given (empty) document.
 

Method Detail

readDocument

public boolean readDocument(Document doc,
                            java.io.InputStream input)
                     throws ReadException,
                            BuildException
Reads data from the input stream to build the contents of the given (empty) document.

Parameters:
doc - The document to build
input - The input stream containing the data
Returns:
true, if loading was successful
Throws:
ReadException - this is thrown if reading the data from the input stream failed
BuildException - this is thrown if building the document from the data 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.