Interface ScalarMarshallerProvider
- All Superinterfaces:
Marshallable<Object>,Readable<Object>,ScalarMarshaller<Object>,Writable<Object>
- All Known Implementing Classes:
Scalar
Provider for a
ScalarMarshaller.- Author:
- Paul Ferraro
-
Method Summary
Modifier and TypeMethodDescriptiondefault <T> ScalarMarshaller<T>Returns the type of object handled by this marshallable instance.default org.infinispan.protostream.descriptors.WireTypeReturns the wire type of the scalar value written by this marshaller.default ObjectreadFrom(ProtoStreamReader reader) Reads an object from the specified reader.default OptionalIntsize(ProtoStreamSizeOperation operation, Object value) Computes the size of the specified object.default voidwriteTo(ProtoStreamWriter writer, Object value) Writes the specified object to the specified writer.
-
Method Details
-
getMarshaller
ScalarMarshaller<?> getMarshaller() -
getJavaClass
Description copied from interface:MarshallableReturns the type of object handled by this marshallable instance.- Specified by:
getJavaClassin interfaceMarshallable<Object>- Returns:
- the type of object handled by this marshallable instance.
-
getWireType
default org.infinispan.protostream.descriptors.WireType getWireType()Description copied from interface:ScalarMarshallerReturns the wire type of the scalar value written by this marshaller.- Specified by:
getWireTypein interfaceScalarMarshaller<Object>- Returns:
- the wire type of the scalar value written by this marshaller.
-
readFrom
Description copied from interface:ReadableReads an object from the specified reader.- Specified by:
readFromin interfaceReadable<Object>- Parameters:
reader- a ProtoStream reader- Returns:
- the read object
- Throws:
IOException- if the object could not be read
-
writeTo
Description copied from interface:WritableWrites the specified object to the specified writer.- Specified by:
writeToin interfaceWritable<Object>- Parameters:
writer- a ProtoStream writervalue- the object to be written- Throws:
IOException- if the object could not be written
-
size
Description copied from interface:MarshallableComputes the size of the specified object.- Specified by:
sizein interfaceMarshallable<Object>value- the value whose size is to be calculated- Returns:
- an optional buffer size, only present if the buffer size could be computed
-
cast
-