| Modifier and Type | Field and Description |
|---|---|
boolean |
numeric
If true, the field number will be used on json keys.
|
com.fasterxml.jackson.core.JsonParser |
parser
The wrapped json parser.
|
| Constructor and Description |
|---|
JsonInput(com.fasterxml.jackson.core.JsonParser parser) |
JsonInput(com.fasterxml.jackson.core.JsonParser parser,
boolean numeric) |
| Modifier and Type | Method and Description |
|---|---|
int |
getLastNumber()
Gets the last field number read.
|
<T> void |
handleUnknownField(int fieldNumber,
Schema<T> schema) |
boolean |
isLastRepeated()
Returns true if the last read field was a repeated field.
|
boolean |
isNumeric()
Returns whether the incoming messages' field names are numeric.
|
<T> T |
mergeObject(T value,
Schema<T> schema) |
boolean |
readBool() |
byte[] |
readByteArray() |
ByteBuffer |
readByteBuffer()
Reads a byte array/ByteBuffer value.
|
ByteString |
readBytes() |
void |
readBytes(ByteBuffer bb) |
double |
readDouble() |
int |
readEnum() |
<T> int |
readFieldNumber(Schema<T> schema) |
int |
readFixed32() |
long |
readFixed64() |
float |
readFloat() |
int |
readInt32() |
long |
readInt64() |
int |
readSFixed32() |
long |
readSFixed64() |
int |
readSInt32() |
long |
readSInt64() |
String |
readString() |
int |
readUInt32() |
long |
readUInt64() |
JsonInput |
reset()
Resets this input.
|
void |
transferByteRangeTo(Output output,
boolean utf8String,
int fieldNumber,
boolean repeated) |
public final com.fasterxml.jackson.core.JsonParser parser
public final boolean numeric
public JsonInput(com.fasterxml.jackson.core.JsonParser parser)
public JsonInput(com.fasterxml.jackson.core.JsonParser parser,
boolean numeric)
public boolean isNumeric()
public int getLastNumber()
public boolean isLastRepeated()
public JsonInput reset()
public <T> void handleUnknownField(int fieldNumber,
Schema<T> schema)
throws IOException
handleUnknownField in interface InputIOExceptionpublic <T> int readFieldNumber(Schema<T> schema) throws IOException
readFieldNumber in interface InputIOExceptionpublic boolean readBool()
throws IOException
readBool in interface InputIOExceptionpublic byte[] readByteArray()
throws IOException
readByteArray in interface InputIOExceptionpublic ByteString readBytes() throws IOException
readBytes in interface InputIOExceptionpublic void readBytes(ByteBuffer bb) throws IOException
readBytes in interface InputIOExceptionpublic double readDouble()
throws IOException
readDouble in interface InputIOExceptionpublic int readEnum()
throws IOException
readEnum in interface InputIOExceptionpublic int readFixed32()
throws IOException
readFixed32 in interface InputIOExceptionpublic long readFixed64()
throws IOException
readFixed64 in interface InputIOExceptionpublic float readFloat()
throws IOException
readFloat in interface InputIOExceptionpublic int readInt32()
throws IOException
readInt32 in interface InputIOExceptionpublic long readInt64()
throws IOException
readInt64 in interface InputIOExceptionpublic int readSFixed32()
throws IOException
readSFixed32 in interface InputIOExceptionpublic long readSFixed64()
throws IOException
readSFixed64 in interface InputIOExceptionpublic int readSInt32()
throws IOException
readSInt32 in interface InputIOExceptionpublic long readSInt64()
throws IOException
readSInt64 in interface InputIOExceptionpublic String readString() throws IOException
readString in interface InputIOExceptionpublic int readUInt32()
throws IOException
readUInt32 in interface InputIOExceptionpublic long readUInt64()
throws IOException
readUInt64 in interface InputIOExceptionpublic <T> T mergeObject(T value,
Schema<T> schema)
throws IOException
mergeObject in interface InputIOExceptionpublic void transferByteRangeTo(Output output, boolean utf8String, int fieldNumber, boolean repeated) throws IOException
transferByteRangeTo in interface InputIOExceptionpublic ByteBuffer readByteBuffer() throws IOException
readByteBuffer in interface InputIOExceptionCopyright © 2009–2020. All rights reserved.