| Constructor and Description |
|---|
FilterInput(F 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.
|
java.nio.ByteBuffer |
readByteBuffer()
Reads a byte array/ByteBuffer 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.
|
public FilterInput(F input)
public <T> void handleUnknownField(int fieldNumber,
Schema<T> schema)
throws java.io.IOException
InputhandleUnknownField in interface Inputjava.io.IOExceptionpublic <T> int readFieldNumber(Schema<T> schema) throws java.io.IOException
Inputschema.readFieldNumber in interface Inputjava.io.IOExceptionpublic boolean readBool()
throws java.io.IOException
Inputpublic byte[] readByteArray()
throws java.io.IOException
InputreadByteArray in interface Inputjava.io.IOExceptionpublic ByteString readBytes() throws java.io.IOException
InputByteString field value.public double readDouble()
throws java.io.IOException
InputreadDouble in interface Inputjava.io.IOExceptionpublic int readEnum()
throws java.io.IOException
Inputpublic int readFixed32()
throws java.io.IOException
InputreadFixed32 in interface Inputjava.io.IOExceptionpublic long readFixed64()
throws java.io.IOException
InputreadFixed64 in interface Inputjava.io.IOExceptionpublic float readFloat()
throws java.io.IOException
Inputpublic int readInt32()
throws java.io.IOException
Inputpublic long readInt64()
throws java.io.IOException
Inputpublic int readSFixed32()
throws java.io.IOException
InputreadSFixed32 in interface Inputjava.io.IOExceptionpublic long readSFixed64()
throws java.io.IOException
InputreadSFixed64 in interface Inputjava.io.IOExceptionpublic int readSInt32()
throws java.io.IOException
InputreadSInt32 in interface Inputjava.io.IOExceptionpublic long readSInt64()
throws java.io.IOException
InputreadSInt64 in interface Inputjava.io.IOExceptionpublic java.lang.String readString()
throws java.io.IOException
InputString field value.readString in interface Inputjava.io.IOExceptionpublic int readUInt32()
throws java.io.IOException
InputreadUInt32 in interface Inputjava.io.IOExceptionpublic long readUInt64()
throws java.io.IOException
InputreadUInt64 in interface Inputjava.io.IOExceptionpublic <T> T mergeObject(T value,
Schema<T> schema)
throws java.io.IOException
Inputschema handles the deserialization for the
object.mergeObject in interface Inputjava.io.IOExceptionpublic void transferByteRangeTo(Output output, boolean utf8String, int fieldNumber, boolean repeated) throws java.io.IOException
InputtransferByteRangeTo in interface Inputjava.io.IOExceptionpublic java.nio.ByteBuffer readByteBuffer()
throws java.io.IOException
readByteBuffer in interface Inputjava.io.IOExceptionCopyright © 2009-2014. All Rights Reserved.