public class TypedArrayMarshaller extends Object implements FieldMarshaller<Object>
| Constructor and Description |
|---|
TypedArrayMarshaller(ScalarMarshaller<Class<?>> componentType) |
| 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsizepublic TypedArrayMarshaller(ScalarMarshaller<Class<?>> componentType)
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()
FieldMarshallergetWireType in interface FieldMarshaller<Object>Copyright © 2021 JBoss by Red Hat. All rights reserved.