Class FastObjectSaver


  • public final class FastObjectSaver
    extends java.lang.Object
    This stores serializable objects. IMPORTANT: THOSE OBJECTS SHOULD HAVE A serialVersionUID:

    private static final long serialVersionUID = 1L;
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private FastObjectSaver()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.Object load​(java.lang.String filenameInClassPath)
      Load a serialized dictionary.
      static void saveToFile​(java.io.File file, java.io.Serializable serializableObject)
      Stores serializable objects.
      • Methods inherited from class java.lang.Object

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

      • FastObjectSaver

        private FastObjectSaver()
    • Method Detail

      • saveToFile

        public static void saveToFile​(java.io.File file,
                                      java.io.Serializable serializableObject)
                               throws java.io.IOException
        Stores serializable objects. IMPORTANT: THOSE OBJECTS SHOULD HAVE A serialVersionUID! private static final long serialVersionUID = 1L;
        Throws:
        java.io.IOException
      • load

        public static java.lang.Object load​(java.lang.String filenameInClassPath)
                                     throws java.io.IOException
        Load a serialized dictionary.
        Parameters:
        filenameInClassPath - a plain text dictionary file in the classpath
        Throws:
        java.io.IOException