|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Input
An Input lets an application read primitive data types and objects from a source of data.
| Method Summary | ||
|---|---|---|
|
handleUnknownField(int fieldNumber,
Schema<T> schema)
The underlying implementation should handle the unknown field. |
|
|
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. |
|
|
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. |
|
| Method Detail |
|---|
<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.IOException
int readInt32()
throws java.io.IOException
java.io.IOException
int readUInt32()
throws java.io.IOException
java.io.IOException
int readSInt32()
throws java.io.IOException
java.io.IOException
int readFixed32()
throws java.io.IOException
java.io.IOException
int readSFixed32()
throws java.io.IOException
java.io.IOException
long readInt64()
throws java.io.IOException
java.io.IOException
long readUInt64()
throws java.io.IOException
java.io.IOException
long readSInt64()
throws java.io.IOException
java.io.IOException
long readFixed64()
throws java.io.IOException
java.io.IOException
long readSFixed64()
throws java.io.IOException
java.io.IOException
float readFloat()
throws java.io.IOException
java.io.IOException
double readDouble()
throws java.io.IOException
java.io.IOException
boolean readBool()
throws java.io.IOException
java.io.IOException
int readEnum()
throws java.io.IOException
java.io.IOException
java.lang.String readString()
throws java.io.IOException
String field value.
java.io.IOException
ByteString readBytes()
throws java.io.IOException
ByteString field value.
java.io.IOException
byte[] 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.IOException
void transferByteRangeTo(Output output,
boolean utf8String,
int fieldNumber,
boolean repeated)
throws java.io.IOException
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||