public class ArrayMarshaller extends Object implements ProtoStreamMarshaller<Object>
| Constructor and Description |
|---|
ArrayMarshaller(ProtoStreamMarshaller<Class<?>> componentTypeMarshaller,
ProtoStreamMarshaller<Object> elementMarshaller) |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends Object> |
getJavaClass() |
Object |
readFrom(org.infinispan.protostream.ImmutableSerializationContext context,
org.infinispan.protostream.RawProtoStreamReader reader) |
OptionalInt |
size(org.infinispan.protostream.ImmutableSerializationContext context,
Object array)
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,
Object array) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTypeNamebyteArraySize, signedIntSize, signedLongSize, stringSize, unsignedIntSize, unsignedLongSizepublic ArrayMarshaller(ProtoStreamMarshaller<Class<?>> componentTypeMarshaller, ProtoStreamMarshaller<Object> elementMarshaller)
public Object readFrom(org.infinispan.protostream.ImmutableSerializationContext context, org.infinispan.protostream.RawProtoStreamReader reader) throws IOException
readFrom in interface org.infinispan.protostream.RawProtobufMarshaller<Object>IOExceptionpublic void writeTo(org.infinispan.protostream.ImmutableSerializationContext context,
org.infinispan.protostream.RawProtoStreamWriter writer,
Object array)
throws IOException
writeTo in interface org.infinispan.protostream.RawProtobufMarshaller<Object>IOExceptionpublic OptionalInt size(org.infinispan.protostream.ImmutableSerializationContext context, Object array)
Predictablesize in interface Predictable<Object>context - the serialization contextarray - the value to be marshalled.Copyright © 2020 JBoss by Red Hat. All rights reserved.