T - the component type of this marshallerpublic class PackedArrayMarshaller<T> extends Object implements ScalarMarshaller<Object>
| Constructor and Description |
|---|
PackedArrayMarshaller(Class<T> componentType,
ScalarMarshaller<T> element) |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends Object> |
getJavaClass()
Returns the type of object handled by this marshallable instance.
|
org.infinispan.protostream.descriptors.WireType |
getWireType()
Returns the wire type of the scalar value written by this marshaller.
|
Object |
readFrom(ProtoStreamReader reader)
Reads an object from the specified reader.
|
void |
writeTo(ProtoStreamWriter writer,
Object array)
Writes the specified object to the specified writer.
|
public PackedArrayMarshaller(Class<T> componentType, ScalarMarshaller<T> element)
public Object readFrom(ProtoStreamReader reader) throws IOException
MarshallablereadFrom in interface Marshallable<Object>reader - a ProtoStream readerIOException - if the object could not be readpublic void writeTo(ProtoStreamWriter writer, Object array) throws IOException
MarshallablewriteTo in interface Marshallable<Object>writer - a ProtoStream writerarray - the object to be writtenIOException - if the object could not be writtenpublic Class<? extends Object> getJavaClass()
MarshallablegetJavaClass in interface Marshallable<Object>public org.infinispan.protostream.descriptors.WireType getWireType()
ScalarMarshallergetWireType in interface ScalarMarshaller<Object>Copyright © 2022 JBoss by Red Hat. All rights reserved.