All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.protostream.RawProtobufMarshaller Maven / Gradle / Ivy

There is a newer version: 9.1.7.Final
Show newest version
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