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
  • Constructor Details

    • PipelineWriter

      public PipelineWriter()
    • PipelineWriter

      public PipelineWriter​(java.io.File file)
  • Method Details

    • write

      public boolean write​(InterfaceIOOptions options, ProgressUpdater progressBar)
      Description copied from class: FileWriter
      Writes this object according to the given options. If loaded object is of type PersistentObject, this method should also set the file writer and reference URL for the object.
      Specified by:
      write in class FileWriter
      Returns:
    • writePipeline

      public boolean writePipeline​(InterfacePipeline pipeline) throws java.io.IOException
      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.IOException
      Writes multiple pipelines to the current file.
      Parameters:
      pipelines -
      Returns:
      Throws:
      java.io.IOException