Package org.infinispan.protostream
Interface RawProtobufMarshaller<T>
-
- All Superinterfaces:
BaseMarshaller<T>
public interface RawProtobufMarshaller<T> extends BaseMarshaller<T>
A marshaller for message types that has direct access to the low level Protobuf streams to read and write tags in an unchecked manner. Cannot be used for enums. The access is not verified against a Protobuf definition as it would normally happen in case ofMessageMarshaller
. This is usually used to provide more flexible or generic marshallers, not tied to a specific schema.- Since:
- 1.0
- Author:
- [email protected]
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
readFrom(ImmutableSerializationContext ctx, RawProtoStreamReader in)
void
writeTo(ImmutableSerializationContext ctx, RawProtoStreamWriter out, T t)
-
Methods inherited from interface org.infinispan.protostream.BaseMarshaller
getJavaClass, getTypeName
-
-
-
-
Method Detail
-
readFrom
T readFrom(ImmutableSerializationContext ctx, RawProtoStreamReader in) throws IOException
- Throws:
IOException
-
writeTo
void writeTo(ImmutableSerializationContext ctx, RawProtoStreamWriter out, T t) throws IOException
- Throws:
IOException
-
-