| 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.
|
ByteBuffer |
readByteBuffer()
Reads a byte array/ByteBuffer value.
|
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.
|
public FilterInput(F input)
public <T> void handleUnknownField(int fieldNumber,
Schema<T> schema)
throws IOException
InputhandleUnknownField in interface InputIOExceptionpublic <T> int readFieldNumber(Schema<T> schema) throws IOException
Inputschema.readFieldNumber in interface InputIOExceptionpublic boolean readBool()
throws IOException
InputreadBool in interface InputIOExceptionpublic byte[] readByteArray()
throws IOException
InputreadByteArray in interface InputIOExceptionpublic ByteString readBytes() throws IOException
InputByteString field value.readBytes in interface InputIOExceptionpublic void readBytes(ByteBuffer bb) throws IOException
InputByteBuffer.readBytes in interface InputIOExceptionpublic double readDouble()
throws IOException
InputreadDouble in interface InputIOExceptionpublic int readEnum()
throws IOException
InputreadEnum in interface InputIOExceptionpublic int readFixed32()
throws IOException
InputreadFixed32 in interface InputIOExceptionpublic long readFixed64()
throws IOException
InputreadFixed64 in interface InputIOExceptionpublic float readFloat()
throws IOException
InputreadFloat in interface InputIOExceptionpublic int readInt32()
throws IOException
InputreadInt32 in interface InputIOExceptionpublic long readInt64()
throws IOException
InputreadInt64 in interface InputIOExceptionpublic int readSFixed32()
throws IOException
InputreadSFixed32 in interface InputIOExceptionpublic long readSFixed64()
throws IOException
InputreadSFixed64 in interface InputIOExceptionpublic int readSInt32()
throws IOException
InputreadSInt32 in interface InputIOExceptionpublic long readSInt64()
throws IOException
InputreadSInt64 in interface InputIOExceptionpublic String readString() throws IOException
InputString field value.readString in interface InputIOExceptionpublic int readUInt32()
throws IOException
InputreadUInt32 in interface InputIOExceptionpublic long readUInt64()
throws IOException
InputreadUInt64 in interface InputIOExceptionpublic <T> T mergeObject(T value,
Schema<T> schema)
throws IOException
Inputschema handles the deserialization for the
object.mergeObject in interface InputIOExceptionpublic void transferByteRangeTo(Output output, boolean utf8String, int fieldNumber, boolean repeated) throws IOException
InputtransferByteRangeTo in interface InputIOExceptionpublic ByteBuffer readByteBuffer() throws IOException
readByteBuffer in interface InputIOExceptionCopyright © 2009–2020. All rights reserved.