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.
|
ByteString |
readBytes()
Reads a
ByteString field value. |
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.
|
java.lang.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 java.io.IOException
java.io.IOException<T> int readFieldNumber(Schema<T> schema) throws java.io.IOException
schema.java.io.IOExceptionint readInt32()
throws java.io.IOException
java.io.IOExceptionint readUInt32()
throws java.io.IOException
java.io.IOExceptionint readSInt32()
throws java.io.IOException
java.io.IOExceptionint readFixed32()
throws java.io.IOException
java.io.IOExceptionint readSFixed32()
throws java.io.IOException
java.io.IOExceptionlong readInt64()
throws java.io.IOException
java.io.IOExceptionlong readUInt64()
throws java.io.IOException
java.io.IOExceptionlong readSInt64()
throws java.io.IOException
java.io.IOExceptionlong readFixed64()
throws java.io.IOException
java.io.IOExceptionlong readSFixed64()
throws java.io.IOException
java.io.IOExceptionfloat readFloat()
throws java.io.IOException
java.io.IOExceptiondouble readDouble()
throws java.io.IOException
java.io.IOExceptionboolean readBool()
throws java.io.IOException
java.io.IOExceptionint readEnum()
throws java.io.IOException
java.io.IOExceptionjava.lang.String readString()
throws java.io.IOException
String field value.java.io.IOExceptionByteString readBytes() throws java.io.IOException
ByteString field value.java.io.IOExceptionbyte[] readByteArray()
throws java.io.IOException
java.io.IOException<T> T mergeObject(T value,
Schema<T> schema)
throws java.io.IOException
schema handles the deserialization for the object.java.io.IOExceptionvoid transferByteRangeTo(Output output, boolean utf8String, int fieldNumber, boolean repeated) throws java.io.IOException
java.io.IOExceptionCopyright © 2009-2017. All Rights Reserved.