Uses of Interface
org.infinispan.protostream.ImmutableSerializationContext
-
Packages that use ImmutableSerializationContext Package Description org.infinispan.protostream Library for easy and efficient marshalling of Java objects in Protocol Buffers format.org.infinispan.protostream.impl Protostream internals. -
-
Uses of ImmutableSerializationContext in org.infinispan.protostream
Subinterfaces of ImmutableSerializationContext in org.infinispan.protostream Modifier and Type Interface Description interface
SerializationContext
A repository for Protobuf type definitions and their marshallers.Methods in org.infinispan.protostream that return ImmutableSerializationContext Modifier and Type Method Description ImmutableSerializationContext
MessageMarshaller.ProtoStreamReader. getSerializationContext()
During reading, a marshaller can obtain the currentImmutableSerializationContext
and use it in order to access the schema or marshaller information.ImmutableSerializationContext
MessageMarshaller.ProtoStreamWriter. getSerializationContext()
During reading, a marshaller can obtain the currentImmutableSerializationContext
and use it in order to access the schema or marshaller information.ImmutableSerializationContext
ProtobufTagMarshaller.OperationContext. getSerializationContext()
Provides access to theImmutableSerializationContext
.Methods in org.infinispan.protostream with parameters of type ImmutableSerializationContext Modifier and Type Method Description static <A> int
ProtobufUtil. computeMessageSize(ImmutableSerializationContext ctx, A t)
static <A> int
ProtobufUtil. computeWrappedMessageSize(ImmutableSerializationContext ctx, A t)
static <A> A
ProtobufUtil. fromByteArray(ImmutableSerializationContext ctx, byte[] bytes, int offset, int length, Class<A> clazz)
static <A> A
ProtobufUtil. fromByteArray(ImmutableSerializationContext ctx, byte[] bytes, Class<A> clazz)
static <A> A
ProtobufUtil. fromByteBuffer(ImmutableSerializationContext ctx, ByteBuffer byteBuffer, Class<A> clazz)
static byte[]
ProtobufUtil. fromCanonicalJSON(ImmutableSerializationContext ctx, Reader reader)
static <A> A
ProtobufUtil. fromWrappedByteArray(ImmutableSerializationContext ctx, byte[] bytes)
Parses a top-level message that was wrapped according to the org.infinispan.protostream.WrappedMessage proto definition.static <A> A
ProtobufUtil. fromWrappedByteArray(ImmutableSerializationContext ctx, byte[] bytes, int offset, int length)
static <A> A
ProtobufUtil. fromWrappedByteBuffer(ImmutableSerializationContext ctx, ByteBuffer byteBuffer)
static <A> A
ProtobufUtil. fromWrappedStream(ImmutableSerializationContext ctx, InputStream in)
default int
WrappedMessageTypeIdMapper. mapTypeIdIn(int typeId, ImmutableSerializationContext ctx)
Deprecated.Called during decoding.default int
WrappedMessageTypeIdMapper. mapTypeIdOut(int typeId, ImmutableSerializationContext ctx)
Deprecated.Called during encoding.static <A> A
ProtobufUtil. readFrom(ImmutableSerializationContext ctx, InputStream in, Class<A> clazz)
T
RawProtobufMarshaller. readFrom(ImmutableSerializationContext ctx, RawProtoStreamReader in)
Deprecated.static byte[]
ProtobufUtil. toByteArray(ImmutableSerializationContext ctx, Object t)
static ByteBuffer
ProtobufUtil. toByteBuffer(ImmutableSerializationContext ctx, Object t)
static String
ProtobufUtil. toCanonicalJSON(ImmutableSerializationContext ctx, byte[] bytes)
Converts a Protobuf encoded message to its canonical JSON representation.static String
ProtobufUtil. toCanonicalJSON(ImmutableSerializationContext ctx, byte[] bytes, boolean prettyPrint)
Converts a Protobuf encoded message to its canonical JSON representation.static byte[]
ProtobufUtil. toWrappedByteArray(ImmutableSerializationContext ctx, Object t)
static byte[]
ProtobufUtil. toWrappedByteArray(ImmutableSerializationContext ctx, Object t, int bufferSize)
static ByteBuffer
ProtobufUtil. toWrappedByteBuffer(ImmutableSerializationContext ctx, Object t)
static void
ProtobufUtil. toWrappedStream(ImmutableSerializationContext ctx, OutputStream out, Object t)
static void
ProtobufUtil. toWrappedStream(ImmutableSerializationContext ctx, OutputStream out, Object t, int bufferSize)
static void
ProtobufUtil. writeTo(ImmutableSerializationContext ctx, OutputStream out, Object t)
void
RawProtobufMarshaller. writeTo(ImmutableSerializationContext ctx, RawProtoStreamWriter out, T t)
Deprecated. -
Uses of ImmutableSerializationContext in org.infinispan.protostream.impl
Classes in org.infinispan.protostream.impl that implement ImmutableSerializationContext Modifier and Type Class Description class
SerializationContextImpl
-