public class ClassMarshaller extends Object implements ProtoStreamMarshaller<Class<?>>
Class.| Constructor and Description |
|---|
ClassMarshaller(ClassResolver resolver) |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends Class<?>> |
getJavaClass() |
Class<?> |
readFrom(org.infinispan.protostream.ImmutableSerializationContext context,
org.infinispan.protostream.RawProtoStreamReader reader) |
OptionalInt |
size(org.infinispan.protostream.ImmutableSerializationContext context,
Class<?> targetClass)
Returns the size of the buffer to use for marshalling the specified object, if known.
|
void |
writeTo(org.infinispan.protostream.ImmutableSerializationContext context,
org.infinispan.protostream.RawProtoStreamWriter writer,
Class<?> targetClass) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTypeNamebyteArraySize, signedIntSize, signedLongSize, stringSize, unsignedIntSize, unsignedLongSizepublic ClassMarshaller(ClassResolver resolver)
public Class<?> readFrom(org.infinispan.protostream.ImmutableSerializationContext context, org.infinispan.protostream.RawProtoStreamReader reader) throws IOException
readFrom in interface org.infinispan.protostream.RawProtobufMarshaller<Class<?>>IOExceptionpublic void writeTo(org.infinispan.protostream.ImmutableSerializationContext context,
org.infinispan.protostream.RawProtoStreamWriter writer,
Class<?> targetClass)
throws IOException
writeTo in interface org.infinispan.protostream.RawProtobufMarshaller<Class<?>>IOExceptionpublic OptionalInt size(org.infinispan.protostream.ImmutableSerializationContext context, Class<?> targetClass)
Predictablesize in interface Predictable<Class<?>>context - the serialization contexttargetClass - the value to be marshalled.Copyright © 2021 JBoss by Red Hat. All rights reserved.