Package mgui.io.domestic.pipelines
Class PipelineWriter
java.lang.Object
mgui.io.FileWriter
mgui.io.domestic.pipelines.PipelineWriter
- All Implemented Interfaces:
InterfaceIO
,IconObject
public class PipelineWriter extends FileWriter
Writes an
InterfacePipeline
instance to file. Default format is 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 PipelineWriter()
PipelineWriter(java.io.File file)
-
Method Summary
Modifier and Type Method Description boolean
write(InterfaceIOOptions options, ProgressUpdater progressBar)
Writes this object according to the givenoptions
.boolean
writePipeline(InterfacePipeline pipeline)
Writes a pipeline to the current file.boolean
writePipelines(java.util.ArrayList<InterfacePipeline> pipelines)
Writes multiple pipelines to the current file.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
-
PipelineWriter
public PipelineWriter() -
PipelineWriter
public PipelineWriter(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:
-
writePipeline
Writes a pipeline to the current file.- Parameters:
pipeline
-- Returns:
- Throws:
java.io.IOException
-
writePipelines
public boolean writePipelines(java.util.ArrayList<InterfacePipeline> pipelines) throws java.io.IOExceptionWrites multiple pipelines to the current file.- Parameters:
pipelines
-- Returns:
- Throws:
java.io.IOException
-