public interface Input
| Modifier and Type | Method and Description |
|---|---|
<T> void |
handleUnknownField(int fieldNumber,
Schema<T> schema)
The underlying implementation should handle the unknown field.
|
<T> T |
mergeObject(T value,
Schema<T> schema)
Merges an object(with schema) field value.
|
boolean |
readBool()
Reads a boolean field value.
|
byte[] |
readByteArray()
Reads a byte array field value.
|
ByteBuffer |
readByteBuffer() |
ByteString |
readBytes()
Reads a
ByteString field value. |
void |
readBytes(ByteBuffer bb)
Reads a field value into a
ByteBuffer. |
double |
readDouble()
Reads a double field value.
|
int |
readEnum()
Reads an enum(its number) field value.
|
<T> int |
readFieldNumber(Schema<T> schema)
Reads the field number of a message/object tied to the given
schema. |
int |
readFixed32()
Reads a fixed int(4 bytes) field value.
|
long |
readFixed64()
Reads a fixed long(8 bytes) field value.
|
float |
readFloat()
Reads a float field value.
|
int |
readInt32()
Reads a variable int field value.
|
long |
readInt64()
Reads a variable long field value.
|
int |
readSFixed32()
Reads a signed+fixed int(4 bytes) field value.
|
long |
readSFixed64()
Reads a signed+fixed long(8 bytes) field value.
|
int |
readSInt32()
Reads a signed int field value.
|
long |
readSInt64()
Reads a signed long field value.
|
String |
readString()
Reads a
String field value. |
int |
readUInt32()
Reads an unsigned int field value.
|
long |
readUInt64()
Reads an unsigned long field value.
|
void |
transferByteRangeTo(Output output,
boolean utf8String,
int fieldNumber,
boolean repeated)
Transfer the byte range to the output.
|
<T> void handleUnknownField(int fieldNumber,
Schema<T> schema)
throws IOException
IOException<T> int readFieldNumber(Schema<T> schema) throws IOException
schema.IOExceptionint readInt32()
throws IOException
IOExceptionint readUInt32()
throws IOException
IOExceptionint readSInt32()
throws IOException
IOExceptionint readFixed32()
throws IOException
IOExceptionint readSFixed32()
throws IOException
IOExceptionlong readInt64()
throws IOException
IOExceptionlong readUInt64()
throws IOException
IOExceptionlong readSInt64()
throws IOException
IOExceptionlong readFixed64()
throws IOException
IOExceptionlong readSFixed64()
throws IOException
IOExceptionfloat readFloat()
throws IOException
IOExceptiondouble readDouble()
throws IOException
IOExceptionboolean readBool()
throws IOException
IOExceptionint readEnum()
throws IOException
IOExceptionString readString() throws IOException
String field value.IOExceptionByteString readBytes() throws IOException
ByteString field value.IOExceptionvoid readBytes(ByteBuffer bb) throws IOException
ByteBuffer.IOExceptionbyte[] readByteArray()
throws IOException
IOExceptionByteBuffer readByteBuffer() throws IOException
IOException<T> T mergeObject(T value,
Schema<T> schema)
throws IOException
schema handles the deserialization for the
object.IOExceptionvoid transferByteRangeTo(Output output, boolean utf8String, int fieldNumber, boolean repeated) throws IOException
IOExceptionCopyright © 2009–2020. All rights reserved.