org.infinispan.protostream.RawProtobufMarshaller Maven / Gradle / Ivy
package org.infinispan.protostream;
import java.io.IOException;
/**
* A marshaller for messages that has direct access to the low level protobuf streams to read and write tags in an
* unchecked manner. The access is not verified against a protobuf definition as it would normally happen in case of
* {@code MessageMarshaller}. This is usually used to provide more flexible or generic marshallers, not tied to a
* specific schema.
*
* @author [email protected]
* @since 1.0
*/
public interface RawProtobufMarshaller extends BaseMarshaller {
T readFrom(SerializationContext ctx, RawProtoStreamReader in) throws IOException;
void writeTo(SerializationContext ctx, RawProtoStreamWriter out, T t) throws IOException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy