Class PackedArrayMarshaller<T>
java.lang.Object
org.wildfly.clustering.marshalling.protostream.PackedArrayMarshaller<T>
- Type Parameters:
T- the component type of this marshaller
- All Implemented Interfaces:
Marshallable<Object>, Readable<Object>, ScalarMarshaller<Object>, Writable<Object>
Marshaller for packed repeated fields, e.g. primitive arrays.
See https://developers.google.com/protocol-buffers/docs/encoding?hl=id#packed
- Author:
- Paul Ferraro
-
Method Summary
Modifier and TypeMethodDescriptionReturns the type of object handled by this marshallable instance.org.infinispan.protostream.descriptors.WireTypeReturns the wire type of the scalar value written by this marshaller.readFrom(ProtoStreamReader reader) Reads an object from the specified reader.voidwriteTo(ProtoStreamWriter writer, Object array) Writes the specified object to the specified writer.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Marshallable
sizeMethods inherited from interface ScalarMarshaller
toMarshaller, toMarshaller, toMarshaller, toMarshaller, toMarshaller, toMarshaller
-
Method Details
-
readFrom
Description copied from interface:ReadableReads an object from the specified reader.- Specified by:
readFromin interfaceReadable<T>- 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<T>- Parameters:
writer- a ProtoStream writerarray- the object to be written- Throws:
IOException- if the object could not be written
-
getJavaClass
Description copied from interface:MarshallableReturns the type of object handled by this marshallable instance.- Specified by:
getJavaClassin interfaceMarshallable<T>- Returns:
- the type of object handled by this marshallable instance.
-
getWireType
public 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<T>- Returns:
- the wire type of the scalar value written by this marshaller.
-