first commit
This commit is contained in:
34
CS2335/lab5/src/nettext/file/DocumentWriter.java
Normal file
34
CS2335/lab5/src/nettext/file/DocumentWriter.java
Normal file
@@ -0,0 +1,34 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user