Files
GTSchoolShit/CS2335/lab5/src/nettext/file/DocumentWriter.java
2025-06-07 01:59:34 -04:00

35 lines
932 B
Java

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;
}
}