Class OutputStreamHook.HookPutFields

  • Enclosing class:
    OutputStreamHook

    private class OutputStreamHook.HookPutFields
    extends java.io.ObjectOutputStream.PutField
    Since ObjectOutputStream.PutField methods specify no exceptions, we are not checking for null parameters on put methods.
    • Field Summary

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

      Constructors 
      Modifier Constructor Description
      private HookPutFields()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void put​(java.lang.String name, boolean value)
      Put the value of the named boolean field into the persistent field.
      void put​(java.lang.String name, byte value)
      Put the value of the named byte field into the persistent fields.
      void put​(java.lang.String name, char value)
      Put the value of the named char field into the persistent fields.
      void put​(java.lang.String name, double value)
      Put the value of the named double field into the persistent field.
      void put​(java.lang.String name, float value)
      Put the value of the named float field into the persistent fields.
      void put​(java.lang.String name, int value)
      Put the value of the named int field into the persistent fields.
      void put​(java.lang.String name, long value)
      Put the value of the named long field into the persistent fields.
      void put​(java.lang.String name, short value)
      Put the value of the named short field into the persistent fields.
      void put​(java.lang.String name, java.lang.Object value)
      Put the value of the named Object field into the persistent field.
      void write​(java.io.ObjectOutput out)
      Write the data and fields to the specified ObjectOutput stream.
      • Methods inherited from class java.lang.Object

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

      • fields

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

      • HookPutFields

        private HookPutFields()
    • Method Detail

      • put

        public void put​(java.lang.String name,
                        boolean value)
        Put the value of the named boolean field into the persistent field.
        Specified by:
        put in class java.io.ObjectOutputStream.PutField
      • put

        public void put​(java.lang.String name,
                        char value)
        Put the value of the named char field into the persistent fields.
        Specified by:
        put in class java.io.ObjectOutputStream.PutField
      • put

        public void put​(java.lang.String name,
                        byte value)
        Put the value of the named byte field into the persistent fields.
        Specified by:
        put in class java.io.ObjectOutputStream.PutField
      • put

        public void put​(java.lang.String name,
                        short value)
        Put the value of the named short field into the persistent fields.
        Specified by:
        put in class java.io.ObjectOutputStream.PutField
      • put

        public void put​(java.lang.String name,
                        int value)
        Put the value of the named int field into the persistent fields.
        Specified by:
        put in class java.io.ObjectOutputStream.PutField
      • put

        public void put​(java.lang.String name,
                        long value)
        Put the value of the named long field into the persistent fields.
        Specified by:
        put in class java.io.ObjectOutputStream.PutField
      • put

        public void put​(java.lang.String name,
                        float value)
        Put the value of the named float field into the persistent fields.
        Specified by:
        put in class java.io.ObjectOutputStream.PutField
      • put

        public void put​(java.lang.String name,
                        double value)
        Put the value of the named double field into the persistent field.
        Specified by:
        put in class java.io.ObjectOutputStream.PutField
      • put

        public void put​(java.lang.String name,
                        java.lang.Object value)
        Put the value of the named Object field into the persistent field.
        Specified by:
        put in class java.io.ObjectOutputStream.PutField
      • write

        public void write​(java.io.ObjectOutput out)
                   throws java.io.IOException
        Write the data and fields to the specified ObjectOutput stream.
        Specified by:
        write in class java.io.ObjectOutputStream.PutField
        Throws:
        java.io.IOException