com.fasterxml.jackson.jr.ob.impl
Class SimpleValueReader

java.lang.Object
  extended by com.fasterxml.jackson.jr.ob.impl.ValueReader
      extended by com.fasterxml.jackson.jr.ob.impl.SimpleValueReader

public class SimpleValueReader
extends ValueReader

ValueReader used for simple scalar types and related.


Field Summary
protected  Class<?> _rawType
           
protected  int _typeId
           
 
Constructor Summary
SimpleValueReader(int typeId, Class<?> raw)
           
 
Method Summary
protected  long _fetchLong(JsonParser p)
           
protected  byte[] _readBinary(JsonParser p)
           
protected  int[] _readIntArray(JsonParser p)
           
 Object read(JSONReader reader, JsonParser p)
           
 Object readNext(JSONReader reader, JsonParser p)
           
 
Methods inherited from class com.fasterxml.jackson.jr.ob.impl.ValueReader
_tokenDesc, _tokenDesc
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_typeId

protected final int _typeId

_rawType

protected final Class<?> _rawType
Constructor Detail

SimpleValueReader

public SimpleValueReader(int typeId,
                         Class<?> raw)
Method Detail

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

_readBinary

protected byte[] _readBinary(JsonParser p)
                      throws IOException
Throws:
IOException

_readIntArray

protected int[] _readIntArray(JsonParser p)
                       throws IOException
Throws:
IOException

_fetchLong

protected long _fetchLong(JsonParser p)
                   throws IOException
Throws:
IOException


Copyright © 2016 FasterXML. All rights reserved.