Class LegacyHookGetFields


  • class LegacyHookGetFields
    extends java.io.ObjectInputStream.GetField
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Hashtable<java.lang.String,​java.lang.Object> fields  
    • Constructor Summary

      Constructors 
      Constructor Description
      LegacyHookGetFields​(java.util.Hashtable<java.lang.String,​java.lang.Object> fields)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean defaulted​(java.lang.String name)
      Return true if the named field is defaulted and has no value in this stream.
      boolean get​(java.lang.String name, boolean defvalue)
      Get the value of the named boolean field from the persistent field.
      byte get​(java.lang.String name, byte defvalue)
      Get the value of the named byte field from the persistent fields.
      char get​(java.lang.String name, char defvalue)
      Get the value of the named char field from the persistent fields.
      double get​(java.lang.String name, double defvalue)
      Get the value of the named double field from the persistent field.
      float get​(java.lang.String name, float defvalue)
      Get the value of the named float field from the persistent fields.
      int get​(java.lang.String name, int defvalue)
      Get the value of the named int field from the persistent fields.
      long get​(java.lang.String name, long defvalue)
      Get the value of the named long field from the persistent fields.
      short get​(java.lang.String name, short defvalue)
      Get the value of the named short field from the persistent fields.
      java.lang.Object get​(java.lang.String name, java.lang.Object defvalue)
      Get the value of the named Object field from the persistent field.
      java.io.ObjectStreamClass getObjectStreamClass()
      Get the ObjectStreamClass that describes the fields in the stream.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • fields

        private java.util.Hashtable<java.lang.String,​java.lang.Object> fields
    • Constructor Detail

      • LegacyHookGetFields

        LegacyHookGetFields​(java.util.Hashtable<java.lang.String,​java.lang.Object> fields)
    • Method Detail

      • getObjectStreamClass

        public java.io.ObjectStreamClass getObjectStreamClass()
        Get the ObjectStreamClass that describes the fields in the stream.
        Specified by:
        getObjectStreamClass in class java.io.ObjectInputStream.GetField
      • defaulted

        public boolean defaulted​(java.lang.String name)
                          throws java.io.IOException,
                                 java.lang.IllegalArgumentException
        Return true if the named field is defaulted and has no value in this stream.
        Specified by:
        defaulted in class java.io.ObjectInputStream.GetField
        Throws:
        java.io.IOException
        java.lang.IllegalArgumentException
      • get

        public boolean get​(java.lang.String name,
                           boolean defvalue)
                    throws java.io.IOException,
                           java.lang.IllegalArgumentException
        Get the value of the named boolean field from the persistent field.
        Specified by:
        get in class java.io.ObjectInputStream.GetField
        Throws:
        java.io.IOException
        java.lang.IllegalArgumentException
      • get

        public char get​(java.lang.String name,
                        char defvalue)
                 throws java.io.IOException,
                        java.lang.IllegalArgumentException
        Get the value of the named char field from the persistent fields.
        Specified by:
        get in class java.io.ObjectInputStream.GetField
        Throws:
        java.io.IOException
        java.lang.IllegalArgumentException
      • get

        public byte get​(java.lang.String name,
                        byte defvalue)
                 throws java.io.IOException,
                        java.lang.IllegalArgumentException
        Get the value of the named byte field from the persistent fields.
        Specified by:
        get in class java.io.ObjectInputStream.GetField
        Throws:
        java.io.IOException
        java.lang.IllegalArgumentException
      • get

        public short get​(java.lang.String name,
                         short defvalue)
                  throws java.io.IOException,
                         java.lang.IllegalArgumentException
        Get the value of the named short field from the persistent fields.
        Specified by:
        get in class java.io.ObjectInputStream.GetField
        Throws:
        java.io.IOException
        java.lang.IllegalArgumentException
      • get

        public int get​(java.lang.String name,
                       int defvalue)
                throws java.io.IOException,
                       java.lang.IllegalArgumentException
        Get the value of the named int field from the persistent fields.
        Specified by:
        get in class java.io.ObjectInputStream.GetField
        Throws:
        java.io.IOException
        java.lang.IllegalArgumentException
      • get

        public long get​(java.lang.String name,
                        long defvalue)
                 throws java.io.IOException,
                        java.lang.IllegalArgumentException
        Get the value of the named long field from the persistent fields.
        Specified by:
        get in class java.io.ObjectInputStream.GetField
        Throws:
        java.io.IOException
        java.lang.IllegalArgumentException
      • get

        public float get​(java.lang.String name,
                         float defvalue)
                  throws java.io.IOException,
                         java.lang.IllegalArgumentException
        Get the value of the named float field from the persistent fields.
        Specified by:
        get in class java.io.ObjectInputStream.GetField
        Throws:
        java.io.IOException
        java.lang.IllegalArgumentException
      • get

        public double get​(java.lang.String name,
                          double defvalue)
                   throws java.io.IOException,
                          java.lang.IllegalArgumentException
        Get the value of the named double field from the persistent field.
        Specified by:
        get in class java.io.ObjectInputStream.GetField
        Throws:
        java.io.IOException
        java.lang.IllegalArgumentException
      • get

        public java.lang.Object get​(java.lang.String name,
                                    java.lang.Object defvalue)
                             throws java.io.IOException,
                                    java.lang.IllegalArgumentException
        Get the value of the named Object field from the persistent field.
        Specified by:
        get in class java.io.ObjectInputStream.GetField
        Throws:
        java.io.IOException
        java.lang.IllegalArgumentException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object