|Modifier and Type||Method and Description|
A method that checks whether the given object is marshallable as per the rules of this marshaller.
Unmarshalls an object from a specific portion of a byte array.
This is a convenience method for converting an object into a
getBufferSizePredictor, objectFromByteBuffer, objectFromInputStream, objectToBuffer, objectToByteBuffer, objectToByteBuffer
public StringMarshaller(Charset charset)
protected ByteBuffer objectToBuffer(Object o, int estimatedSize) throws IOException, InterruptedException
org.infinispan.io.ByteBufferwhich takes an estimated size as parameter. A
org.infinispan.io.ByteBufferallows direct access to the byte array with minimal array copying
public Object objectFromByteBuffer(byte buf, int offset, int length) throws IOException, ClassNotFoundException
buf- byte array containing the binary representation of an object. Must not be null.
offset- point in buffer to start reading
length- number of bytes to consider
IOException- if unmarshalling cannot complete due to some I/O error
ClassNotFoundException- if the class of the object trying to unmarshall is unknown
o- object to verify whether it's marshallable or not
Exception- if while checking whether the object was serializable or not, an exception arose
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.