Package mgui.io.domestic
Class WorkspaceWriter
java.lang.Object
mgui.io.FileWriter
mgui.io.standard.xml.XMLWriter
mgui.io.domestic.WorkspaceWriter
- All Implemented Interfaces:
InterfaceIO
,IconObject
public class WorkspaceWriter extends XMLWriter
Writes a workspace (i.e., an instance of
InterfaceWorkspace
) to XML.- Since:
- 1.0
- Version:
- 1.0
- Author:
- Andrew Reid
-
Field Summary
Fields inherited from class mgui.io.FileWriter
dataFile, dataURL, failure_message, options, success_message
-
Constructor Summary
Constructors Constructor Description WorkspaceWriter()
WorkspaceWriter(java.io.File file)
-
Method Summary
Modifier and Type Method Description boolean
write(InterfaceIOOptions options, ProgressUpdater progress_bar)
Writes this object according to the givenoptions
.Methods inherited from class mgui.io.standard.xml.XMLWriter
writeObject, writeXMLObject
Methods inherited from class mgui.io.FileWriter
getComplementIOType, getFailureMessage, getFile, getIOType, getLoaderComplement, getObjectIcon, getOptions, getProgressMessage, getSuccessMessage, getSupportedObjects, getTitle, getURL, setFile, setOptions, setURL, toString, write, write
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
WorkspaceWriter
public WorkspaceWriter() -
WorkspaceWriter
public WorkspaceWriter(java.io.File file)
-
-
Method Details
-
write
Description copied from class:FileWriter
Writes this object according to the givenoptions
. If loaded object is of typePersistentObject
, this method should also set the file writer and reference URL for the object.- Specified by:
write
in classFileWriter
- Returns:
-