Package com.jsoniter

Class ReflectionCollectionDecoder

  • All Implemented Interfaces:
    Decoder

    class ReflectionCollectionDecoder
    extends java.lang.Object
    implements Decoder
    • Field Detail

      • ctor

        private final java.lang.reflect.Constructor ctor
      • compTypeDecoder

        private final Decoder compTypeDecoder
    • Constructor Detail

      • ReflectionCollectionDecoder

        public ReflectionCollectionDecoder​(java.lang.Class clazz,
                                           java.lang.reflect.Type[] typeArgs)
    • Method Detail

      • decode

        public java.lang.Object decode​(JsonIterator iter)
                                throws java.io.IOException
        Description copied from interface: Decoder
        Customized decoder to read values from iterator
        Specified by:
        decode in interface Decoder
        Parameters:
        iter - the iterator instance
        Returns:
        the value to set
        Throws:
        java.io.IOException - when reading from iterator triggered error
      • decode_

        private java.lang.Object decode_​(JsonIterator iter)
                                  throws java.lang.Exception
        Throws:
        java.lang.Exception