public class ProtoStreamMarshallerAdapter<T> extends Object implements ProtoStreamMarshaller<T>
ProtobufTagMarshaller to a ProtoStreamMarshaller.| Modifier and Type | Method and Description |
|---|---|
Class<? extends T> |
getJavaClass()
Returns the type of object handled by this marshallable instance.
|
String |
getTypeName() |
T |
read(org.infinispan.protostream.ProtobufTagMarshaller.ReadContext context) |
T |
readFrom(ProtoStreamReader reader)
Reads an object from the specified reader.
|
void |
write(org.infinispan.protostream.ProtobufTagMarshaller.WriteContext context,
T value) |
void |
writeTo(ProtoStreamWriter writer,
T value)
Writes the specified object to the specified writer.
|
public Class<? extends T> getJavaClass()
MarshallablegetJavaClass in interface org.infinispan.protostream.BaseMarshaller<T>getJavaClass in interface Marshallable<T>public String getTypeName()
getTypeName in interface org.infinispan.protostream.BaseMarshaller<T>getTypeName in interface ProtoStreamMarshaller<T>public T readFrom(ProtoStreamReader reader) throws IOException
MarshallablereadFrom in interface Marshallable<T>reader - a ProtoStream readerIOException - if the object could not be readpublic void writeTo(ProtoStreamWriter writer, T value) throws IOException
MarshallablewriteTo in interface Marshallable<T>writer - a ProtoStream writervalue - the object to be writtenIOException - if the object could not be writtenpublic T read(org.infinispan.protostream.ProtobufTagMarshaller.ReadContext context) throws IOException
read in interface org.infinispan.protostream.ProtobufTagMarshaller<T>read in interface ProtoStreamMarshaller<T>IOExceptionpublic void write(org.infinispan.protostream.ProtobufTagMarshaller.WriteContext context,
T value)
throws IOException
write in interface org.infinispan.protostream.ProtobufTagMarshaller<T>write in interface ProtoStreamMarshaller<T>IOExceptionCopyright © 2022 JBoss by Red Hat. All rights reserved.