public class ClassMarshaller extends Object implements ProtoStreamMarshaller<Class<?>>
Class.| Constructor and Description |
|---|
ClassMarshaller(ClassLoaderMarshaller marshaller) |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends Class<?>> |
getJavaClass()
Returns the type of object handled by this marshallable instance.
|
Class<?> |
readFrom(ProtoStreamReader reader)
Reads an object from the specified reader.
|
void |
writeTo(ProtoStreamWriter writer,
Class<?> targetClass)
Writes the specified object to the specified writer.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTypeName, read, writepublic ClassMarshaller(ClassLoaderMarshaller marshaller)
public Class<?> readFrom(ProtoStreamReader reader) throws IOException
MarshallablereadFrom in interface Marshallable<Class<?>>reader - a ProtoStream readerIOException - if the object could not be readpublic void writeTo(ProtoStreamWriter writer, Class<?> targetClass) throws IOException
MarshallablewriteTo in interface Marshallable<Class<?>>writer - a ProtoStream writertargetClass - the object to be writtenIOException - if the object could not be writtenpublic Class<? extends Class<?>> getJavaClass()
MarshallablegetJavaClass in interface org.infinispan.protostream.BaseMarshaller<Class<?>>getJavaClass in interface Marshallable<Class<?>>Copyright © 2023 JBoss by Red Hat. All rights reserved.