Class DataModel


  • public class DataModel
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.io.File file  
    • Constructor Summary

      Constructors 
      Constructor Description
      DataModel​(MorphUI mui)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.io.File getFile()  
      DataModel load​(java.io.File dataFile)  
      void save()  
      void save​(java.io.File file)  
      void saveFile​(java.util.zip.ZipOutputStream zipOut, java.io.FileOutputStream fos, java.io.File tmpFile, java.lang.String filenameInZip)  
      void setFile​(java.io.File file)  
      java.io.File writeTextTmp()  
      • Methods inherited from class java.lang.Object

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

      • file

        protected java.io.File file
    • Constructor Detail

      • DataModel

        public DataModel​(MorphUI mui)
    • Method Detail

      • saveFile

        public void saveFile​(java.util.zip.ZipOutputStream zipOut,
                             java.io.FileOutputStream fos,
                             java.io.File tmpFile,
                             java.lang.String filenameInZip)
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • writeTextTmp

        public java.io.File writeTextTmp()
                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • save

        public void save​(java.io.File file)
      • save

        public void save()
      • load

        public DataModel load​(java.io.File dataFile)
                       throws java.io.IOException,
                              java.lang.ClassNotFoundException
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
      • getFile

        public java.io.File getFile()
      • setFile

        public void setFile​(java.io.File file)