|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Delegate<V>
Controls how certain types are serialized and can even override the existing serializers because this has higher priority when the fields are being built.
| Method Summary | |
|---|---|
WireFormat.FieldType |
getFieldType()
The field type (for possible reflective operations in future releases). |
V |
readFrom(Input input)
Reads the value from the input. |
void |
transfer(Pipe pipe,
Input input,
Output output,
int number,
boolean repeated)
Transfers the type from the input to the output. |
java.lang.Class<?> |
typeClass()
The class of the target value. |
void |
writeTo(Output output,
int number,
V value,
boolean repeated)
Writes the value to the output. |
| Method Detail |
|---|
WireFormat.FieldType getFieldType()
V readFrom(Input input)
throws java.io.IOException
java.io.IOException
void writeTo(Output output,
int number,
V value,
boolean repeated)
throws java.io.IOException
value to the output.
java.io.IOException
void transfer(Pipe pipe,
Input input,
Output output,
int number,
boolean repeated)
throws java.io.IOException
java.io.IOExceptionjava.lang.Class<?> typeClass()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||