public enum AnyMarshaller extends Enum<AnyMarshaller> implements ProtoStreamMarshaller<Any>
Any object.| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends Any> |
getJavaClass()
Returns the type of object handled by this marshallable instance.
|
Any |
readFrom(ProtoStreamReader reader)
Reads an object from the specified reader.
|
static AnyMarshaller |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AnyMarshaller[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
void |
writeTo(ProtoStreamWriter writer,
Any value)
Writes the specified object to the specified writer.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfgetTypeName, read, writepublic static final AnyMarshaller INSTANCE
public static AnyMarshaller[] values()
for (AnyMarshaller c : AnyMarshaller.values()) System.out.println(c);
public static AnyMarshaller 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 Any> getJavaClass()
MarshallablegetJavaClass in interface org.infinispan.protostream.BaseMarshaller<Any>getJavaClass in interface Marshallable<Any>public Any readFrom(ProtoStreamReader reader) throws IOException
MarshallablereadFrom in interface Marshallable<Any>reader - a ProtoStream readerIOException - if the object could not be readpublic void writeTo(ProtoStreamWriter writer, Any value) throws IOException
MarshallablewriteTo in interface Marshallable<Any>writer - a ProtoStream writervalue - the object to be writtenIOException - if the object could not be writtenCopyright © 2021 JBoss by Red Hat. All rights reserved.