public enum ObjectMarshaller extends Enum<ObjectMarshaller> implements MarshallerProvider
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends Object> |
getJavaClass() |
ProtoStreamMarshaller<?> |
getMarshaller() |
Object |
readFrom(org.infinispan.protostream.ImmutableSerializationContext context,
org.infinispan.protostream.RawProtoStreamReader reader) |
OptionalInt |
size(org.infinispan.protostream.ImmutableSerializationContext context,
Object value)
Returns the size of the buffer to use for marshalling the specified object, if known.
|
static ObjectMarshaller |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ObjectMarshaller[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
void |
writeTo(org.infinispan.protostream.ImmutableSerializationContext context,
org.infinispan.protostream.RawProtoStreamWriter writer,
Object value) |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfcastgetTypeNamebyteArraySize, signedIntSize, signedLongSize, stringSize, unsignedIntSize, unsignedLongSizepublic static final ObjectMarshaller INSTANCE
public static ObjectMarshaller[] values()
for (ObjectMarshaller c : ObjectMarshaller.values()) System.out.println(c);
public static ObjectMarshaller valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic Class<? extends Object> getJavaClass()
getJavaClass in interface org.infinispan.protostream.BaseMarshaller<Object>getJavaClass in interface MarshallerProviderpublic Object readFrom(org.infinispan.protostream.ImmutableSerializationContext context, org.infinispan.protostream.RawProtoStreamReader reader) throws IOException
readFrom in interface org.infinispan.protostream.RawProtobufMarshaller<Object>readFrom in interface MarshallerProviderIOExceptionpublic void writeTo(org.infinispan.protostream.ImmutableSerializationContext context,
org.infinispan.protostream.RawProtoStreamWriter writer,
Object value)
throws IOException
writeTo in interface org.infinispan.protostream.RawProtobufMarshaller<Object>writeTo in interface MarshallerProviderIOExceptionpublic OptionalInt size(org.infinispan.protostream.ImmutableSerializationContext context, Object value)
Predictablesize in interface MarshallerProvidersize in interface Predictable<Object>context - the serialization contextvalue - the value to be marshalled.public ProtoStreamMarshaller<?> getMarshaller()
getMarshaller in interface MarshallerProviderCopyright © 2021 JBoss by Red Hat. All rights reserved.