|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.dyuproject.protostuff.FilterInput<F>
public class FilterInput<F extends Input>
A FilterInput contains some other input, which it uses as its basic
source of data.
| Field Summary | |
|---|---|
protected F |
input
|
| Constructor Summary | |
|---|---|
FilterInput(F input)
|
|
| 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. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final F extends Input input
| Constructor Detail |
|---|
public FilterInput(F input)
| Method Detail |
|---|
public <T> void handleUnknownField(int fieldNumber,
Schema<T> schema)
throws java.io.IOException
Input
handleUnknownField in interface Inputjava.io.IOException
public <T> int readFieldNumber(Schema<T> schema)
throws java.io.IOException
Inputschema.
readFieldNumber in interface Inputjava.io.IOException
public boolean readBool()
throws java.io.IOException
Input
readBool in interface Inputjava.io.IOException
public byte[] readByteArray()
throws java.io.IOException
Input
readByteArray in interface Inputjava.io.IOException
public ByteString readBytes()
throws java.io.IOException
InputByteString field value.
readBytes in interface Inputjava.io.IOException
public double readDouble()
throws java.io.IOException
Input
readDouble in interface Inputjava.io.IOException
public int readEnum()
throws java.io.IOException
Input
readEnum in interface Inputjava.io.IOException
public int readFixed32()
throws java.io.IOException
Input
readFixed32 in interface Inputjava.io.IOException
public long readFixed64()
throws java.io.IOException
Input
readFixed64 in interface Inputjava.io.IOException
public float readFloat()
throws java.io.IOException
Input
readFloat in interface Inputjava.io.IOException
public int readInt32()
throws java.io.IOException
Input
readInt32 in interface Inputjava.io.IOException
public long readInt64()
throws java.io.IOException
Input
readInt64 in interface Inputjava.io.IOException
public int readSFixed32()
throws java.io.IOException
Input
readSFixed32 in interface Inputjava.io.IOException
public long readSFixed64()
throws java.io.IOException
Input
readSFixed64 in interface Inputjava.io.IOException
public int readSInt32()
throws java.io.IOException
Input
readSInt32 in interface Inputjava.io.IOException
public long readSInt64()
throws java.io.IOException
Input
readSInt64 in interface Inputjava.io.IOException
public java.lang.String readString()
throws java.io.IOException
InputString field value.
readString in interface Inputjava.io.IOException
public int readUInt32()
throws java.io.IOException
Input
readUInt32 in interface Inputjava.io.IOException
public long readUInt64()
throws java.io.IOException
Input
readUInt64 in interface Inputjava.io.IOException
public <T> T mergeObject(T value,
Schema<T> schema)
throws java.io.IOException
Inputschema handles the deserialization for the object.
mergeObject in interface Inputjava.io.IOException
public void transferByteRangeTo(Output output,
boolean utf8String,
int fieldNumber,
boolean repeated)
throws java.io.IOException
Input
transferByteRangeTo in interface Inputjava.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||