package nettext.file; import nettext.document.Document; /** * This class is the main Document Writer from which * all document types can be written */ public class DocumentWriter { /** * The reference to a DocumentOutputHandler, which contains * the methods necessary for writing out the files */ private DocumentOutputHandler outputHandler = null; /** * Set the OutputHandler * @param outputHandler the new outputHandler to use */ public final void setOutputHandler(final DocumentOutputHandler outputHandler) { this.outputHandler = outputHandler; } /** * Write the document using the current outputHandler *@param document document * @return success of write operation */ public final boolean writeDocument(final Document document) { return false; } }