Class AbstractDeserializer

    • Field Detail

      • NULL

        public static final com.caucho.hessian.io.AbstractDeserializer.NullDeserializer NULL
    • Constructor Detail

      • AbstractDeserializer

        public AbstractDeserializer()
    • Method Detail

      • getType

        public java.lang.Class<?> getType()
        Specified by:
        getType in interface Deserializer
      • createFields

        public java.lang.Object[] createFields​(int len)
        Creates the field array for a class. The default implementation returns a String[] array.
        Specified by:
        createFields in interface Deserializer
        Parameters:
        len - number of items in the array
        Returns:
        the new empty array
      • createField

        public java.lang.Object createField​(java.lang.String name)
        Creates a field value class. The default implementation returns the String.
        Specified by:
        createField in interface Deserializer
        Parameters:
        len - number of items in the array
        Returns:
        the new empty array
      • readObject

        public java.lang.Object readObject​(AbstractHessianInput in,
                                           java.lang.String[] fieldNames)
                                    throws java.io.IOException
        Specified by:
        readObject in interface Deserializer
        Throws:
        java.io.IOException
      • readObject

        public java.lang.Object readObject​(AbstractHessianInput in,
                                           java.lang.Object[] fields)
                                    throws java.io.IOException
        Reads an object instance from the input stream
        Specified by:
        readObject in interface Deserializer
        Parameters:
        in - the input stream
        fields - the deserializer's own field marshal
        Returns:
        the new object
        Throws:
        java.io.IOException
      • codeName

        protected java.lang.String codeName​(int ch)