Package io.protostuff.runtime
Interface Delegate<V>
- All Known Implementing Classes:
RuntimeFieldFactory
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
Modifier and TypeMethodDescriptionThe field type (for possible reflective operations in future releases).Reads the value from the input.void
Transfers the type from the input to the output.Class
<?> The class of the target value.void
Writes thevalue
to the output.
-
Method Details
-
getFieldType
WireFormat.FieldType getFieldType()The field type (for possible reflective operations in future releases). -
readFrom
Reads the value from the input.- Throws:
IOException
-
writeTo
Writes thevalue
to the output.- Throws:
IOException
-
transfer
void transfer(Pipe pipe, Input input, Output output, int number, boolean repeated) throws IOException Transfers the type from the input to the output.- Throws:
IOException
-
typeClass
Class<?> typeClass()The class of the target value.
-