Package com.jsoniter

Class ReflectionEnumDecoder

  • All Implemented Interfaces:
    Decoder

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

      • enumMap

        private final java.util.Map<Slice,​java.lang.Object> enumMap
      • clazz

        private java.lang.Class clazz
    • Constructor Detail

      • ReflectionEnumDecoder

        public ReflectionEnumDecoder​(java.lang.Class clazz)
    • 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