Class DataSourceWriter

java.lang.Object
mgui.io.FileWriter
mgui.io.domestic.datasources.DataSourceWriter
All Implemented Interfaces:
InterfaceIO, IconObject

public class DataSourceWriter
extends FileWriter
Writes a Data Source object to file.
Since:
1.0
Version:
1.0
Author:
Andrew Reid
  • Field Details

  • Constructor Details

    • DataSourceWriter

      public DataSourceWriter()
    • DataSourceWriter

      public DataSourceWriter​(DataSourceWriter.FileType type)
    • DataSourceWriter

      public DataSourceWriter​(java.io.File file)
    • DataSourceWriter

      public DataSourceWriter​(java.io.File file, DataSourceWriter.FileType type)
  • 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:
    • writeDataSource

      public boolean writeDataSource​(DataSource source) throws java.io.IOException
      Writes this data source to a text file.
      Parameters:
      source -
      Returns:
      Throws:
      java.io.IOException
    • writeDataSourceAsXml

      public boolean writeDataSourceAsXml​(DataSource source) throws java.io.IOException
      Throws:
      java.io.IOException