public interface ScalarMarshallerProvider extends ScalarMarshaller<Object>
ScalarMarshaller.| Modifier and Type | Method and Description |
|---|---|
default <T> ScalarMarshaller<T> |
cast(Class<T> type) |
default Class<? extends Object> |
getJavaClass()
Returns the type of object handled by this marshallable instance.
|
ScalarMarshaller<?> |
getMarshaller() |
default org.infinispan.protostream.descriptors.WireType |
getWireType()
Returns the wire type of the scalar value written by this marshaller.
|
default Object |
readFrom(ProtoStreamReader reader)
Reads an object from the specified reader.
|
default void |
writeTo(ProtoStreamWriter writer,
Object value)
Writes the specified object to the specified writer.
|
ScalarMarshaller<?> getMarshaller()
default Class<? extends Object> getJavaClass()
MarshallablegetJavaClass in interface Marshallable<Object>default org.infinispan.protostream.descriptors.WireType getWireType()
ScalarMarshallergetWireType in interface ScalarMarshaller<Object>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 <T> ScalarMarshaller<T> cast(Class<T> type)
Copyright © 2022 JBoss by Red Hat. All rights reserved.