ValueReader used for simple scalar types and related,
not including POJO-, java.util.Map and java.util.Collection
types.
| Modifier and Type | Field and Description |
|---|---|
| protected final int | |
| private static final int[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected long | |
| protected byte[] | |
| protected int[] | |
| protected Path | |
| public Object | read(JSONReader
Context object that allows calling other read methods for contained
values of different types (for example for collection readers). reader, JsonParser Underlying parser used for reading decoded token stream p)Implements abstract com. Method called to deserialize value of type supported by this reader, using given parser. |
| public Object | readNext(JSONReader
Context object that allows calling other read methods for contained
values of different types (for example for collection readers). reader, JsonParser Underlying parser used for reading decoded token stream p)Overrides com. Method called to deserialize value of type supported by this reader, using given parser. |
| _typeId | back to summary |
|---|---|
| protected final int _typeId | |
| NO_INTS | back to summary |
|---|---|
| private static final int[] NO_INTS | |
| SimpleValueReader | back to summary |
|---|---|
| public SimpleValueReader(Class<?> raw, int typeId) | |
| _fetchLong | back to summary |
|---|---|
| protected long _fetchLong(JsonParser p) throws IOException | |
| _readBinary | back to summary |
|---|---|
| protected byte[] _readBinary(JsonParser p) throws IOException | |
| _readIntArray | back to summary |
|---|---|
| protected int[] _readIntArray(JsonParser p) throws IOException | |
| _readPath | back to summary |
|---|---|
| protected Path _readPath(JsonParser p) throws IOException | |
| read | back to summary |
|---|---|
| public Object read(JSONReader reader, JsonParser p) throws IOException Implements abstract com. Doc from com. Method called to deserialize value of type supported by this reader, using given parser. Parser is already positioned to the (first) token of the value to read.
| |
| readNext | back to summary |
|---|---|
| public Object readNext(JSONReader reader, JsonParser p) throws IOException Overrides com. Doc from com. Method called to deserialize value of type supported by this reader, using given parser. Parser is not yet positioned to the (first) token of the value to read and needs to be advanced.
Default implementation simply calls `p.nextToken()` first, then calls
{#link
| |