Package strategy

Class FileDraw

  • All Implemented Interfaces:
    FileHandler

    public class FileDraw
    extends java.lang.Object
    implements FileHandler
    Class that is responsible to save and open draw as serializable file.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void open​(java.io.File file)
      Open serializable file and load it to draw adding shapes to model.
      void save​(java.io.File file)
      Save forwarded file as serializable.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • fileOutputStream

        private java.io.FileOutputStream fileOutputStream
      • fileInputStream

        private java.io.FileInputStream fileInputStream
    • Constructor Detail

    • Method Detail

      • save

        public void save​(java.io.File file)
        Save forwarded file as serializable.
        Specified by:
        save in interface FileHandler
      • open

        public void open​(java.io.File file)
        Open serializable file and load it to draw adding shapes to model.
        Specified by:
        open in interface FileHandler