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 int |
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 OptionalInt |
size(org.infinispan.protostream.ImmutableSerializationContext context,
Object value)
Predicts the size of the specified object that would be written via the
Marshallable.writeTo(ProtoStreamWriter, Object) method. |
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 int 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 OptionalInt size(org.infinispan.protostream.ImmutableSerializationContext context, Object value)
MarshallableMarshallable.writeTo(ProtoStreamWriter, Object) method.size in interface Marshallable<Object>context - a serialization contextvalue - the object whose size is to be determineddefault <T> ScalarMarshaller<T> cast(Class<T> type)
Copyright © 2021 JBoss by Red Hat. All rights reserved.