Class ArrayDecoder

  • All Implemented Interfaces:
    Decoder<java.lang.Object>

    public class ArrayDecoder
    extends java.lang.Object
    implements Decoder<java.lang.Object>
    This array decoder is meant to decode the body of array elements, where the type and length are specified by the element type and an attribute, respectively.
    • Constructor Detail

      • ArrayDecoder

        public ArrayDecoder​(Decoder<?> elementDecoder,
                            java.lang.Class<?> clazz,
                            int len)
    • Method Detail

      • stringToObject

        public java.lang.Object stringToObject​(java.lang.String s,
                                               DeserializationContext context)
                                        throws java.io.IOException
        Specified by:
        stringToObject in interface Decoder<java.lang.Object>
        Throws:
        java.io.IOException
      • getArray

        public java.lang.Object getArray()
      • createEncoder

        public Encoder createEncoder​(java.lang.Object object)
        Specified by:
        createEncoder in interface Decoder<java.lang.Object>