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