T - type of serializable messagepublic static interface MethodDescriptor.Marshaller<T>
Stub implementations will define implementations of this interface for each of the request and response messages provided by a service.
| Modifier and Type | Method and Description |
|---|---|
T |
parse(InputStream stream)
Given an
InputStream parse it into an instance of the declared type so that it can be
passed to application code. |
InputStream |
stream(T value)
Given a message, produce an
InputStream for it so that it can be written to the wire. |
InputStream stream(T value)
InputStream for it so that it can be written to the wire.
Where possible implementations should produce streams that are KnownLength
to improve transport efficiency.value - to serialize.T parse(InputStream stream)
InputStream parse it into an instance of the declared type so that it can be
passed to application code.stream - of bytes for serialized value