Class JSerializedObject


  • public class JSerializedObject
    extends JResourceFile
    A simple class that takes an object and serializes it into a file in the parent package with the given name.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.Object obj  
    • Constructor Summary

      Constructors 
      Constructor Description
      JSerializedObject​(java.lang.String name, java.lang.Object obj)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void build​(java.io.OutputStream os)
      called by JPackage to serialize the object
      • Methods inherited from class java.lang.Object

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

      • obj

        private final java.lang.Object obj
    • Constructor Detail

      • JSerializedObject

        public JSerializedObject​(java.lang.String name,
                                 java.lang.Object obj)
                          throws java.io.IOException
        Throws:
        java.io.IOException - If the serialization fails, this exception is thrown
    • Method Detail

      • build

        protected void build​(java.io.OutputStream os)
                      throws java.io.IOException
        called by JPackage to serialize the object
        Specified by:
        build in class JResourceFile
        Throws:
        java.io.IOException