com.fasterxml.jackson.jr.ob.impl
Class EnumReader
java.lang.Object
com.fasterxml.jackson.jr.ob.impl.ValueReader
com.fasterxml.jackson.jr.ob.impl.EnumReader
public class EnumReader
- extends ValueReader
Reader for Enum values: needed because we need a simple Map
for efficient conversion from id (gotten with Enum.toString()
to value.
In future we could consider alternatively allowing use of
Enum.name()
for id.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_byIndex
protected final Object[] _byIndex
_byName
protected final Map<String,Object> _byName
EnumReader
public EnumReader(Object[] byIndex,
Map<String,Object> byName)
readNext
public Object readNext(JSONReader reader,
JsonParser p)
throws IOException
- Specified by:
readNext
in class ValueReader
- Throws:
IOException
read
public Object read(JSONReader reader,
JsonParser p)
throws IOException
- Specified by:
read
in class ValueReader
- Throws:
IOException
Copyright © 2016 FasterXML. All rights reserved.