Class ObjectArraySerializer

  • All Implemented Interfaces:
    java.io.Externalizable, java.io.Serializable

    public class ObjectArraySerializer
    extends Serializer<java.lang.Object[]>
    See Also:
    Serialized Form
    • Field Detail

      • componentType

        private java.lang.Class componentType
    • Constructor Detail

      • ObjectArraySerializer

        ObjectArraySerializer​(java.lang.Class cls)
    • Method Detail

      • readExternal

        public void readExternal​(java.io.ObjectInput in)
                          throws java.io.IOException,
                                 java.lang.ClassNotFoundException
        Specified by:
        readExternal in interface java.io.Externalizable
        Overrides:
        readExternal in class Serializer<java.lang.Object[]>
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
      • calcSize

        public void calcSize​(java.lang.Object[] obj,
                             CalcSizeStream css)
                      throws java.io.IOException
        Specified by:
        calcSize in class Serializer<java.lang.Object[]>
        Throws:
        java.io.IOException
      • write

        public void write​(java.lang.Object[] obj,
                          DataStream out)
                   throws java.io.IOException
        Specified by:
        write in class Serializer<java.lang.Object[]>
        Throws:
        java.io.IOException
      • read

        public java.lang.Object[] read​(DataStream in)
                                throws java.io.IOException,
                                       java.lang.ClassNotFoundException
        Specified by:
        read in class Serializer<java.lang.Object[]>
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
      • skip

        public void skip​(DataStream in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
        Specified by:
        skip in class Serializer<java.lang.Object[]>
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
      • toJson

        public void toJson​(java.lang.Object[] obj,
                           java.lang.StringBuilder builder)
                    throws java.io.IOException
        Specified by:
        toJson in class Serializer<java.lang.Object[]>
        Throws:
        java.io.IOException
      • fromJson

        public java.lang.Object[] fromJson​(JsonReader in)
                                    throws java.io.IOException,
                                           java.lang.ClassNotFoundException
        Specified by:
        fromJson in class Serializer<java.lang.Object[]>
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException