Class ShapeXmlWriter

java.lang.Object
All Implemented Interfaces:
InterfaceIO, IconObject

public class ShapeXmlWriter
extends InterfaceShapeWriter
Writes an InterfaceShape object to XML.
Since:
1.0
Version:
1.0
Author:
Andrew Reid
  • Constructor Details

    • ShapeXmlWriter

      public ShapeXmlWriter()
    • ShapeXmlWriter

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

    • write

      public boolean write​(InterfaceIOOptions options, ProgressUpdater progress_bar)
      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:
    • writeShape

      public boolean writeShape​(InterfaceShape shape, ProgressUpdater progress_bar) throws java.io.IOException
      Description copied from class: InterfaceShapeWriter
      Writes this shape to file using its domestic XML representation.
      Specified by:
      writeShape in class InterfaceShapeWriter
      Returns:
      Throws:
      java.io.IOException