public abstract class AbstractMarshaller extends Object implements org.infinispan.commons.marshall.Marshaller, org.infinispan.commons.marshall.StreamAwareMarshaller
| Constructor and Description |
|---|
AbstractMarshaller() |
| Modifier and Type | Method and Description |
|---|---|
org.infinispan.commons.marshall.BufferSizePredictor |
getBufferSizePredictor(Object object) |
Object |
objectFromByteBuffer(byte[] bytes) |
Object |
objectFromByteBuffer(byte[] buf,
int offset,
int length) |
org.infinispan.commons.io.ByteBuffer |
objectToBuffer(Object object) |
byte[] |
objectToByteBuffer(Object object) |
byte[] |
objectToByteBuffer(Object obj,
int estimatedSize) |
int |
sizeEstimate(Object object) |
void |
stop() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic void stop()
stop in interface org.infinispan.commons.marshall.Marshallerpublic int sizeEstimate(Object object)
sizeEstimate in interface org.infinispan.commons.marshall.StreamAwareMarshallerpublic org.infinispan.commons.marshall.BufferSizePredictor getBufferSizePredictor(Object object)
getBufferSizePredictor in interface org.infinispan.commons.marshall.Marshallerpublic Object objectFromByteBuffer(byte[] bytes) throws IOException, ClassNotFoundException
objectFromByteBuffer in interface org.infinispan.commons.marshall.MarshallerIOExceptionClassNotFoundExceptionpublic Object objectFromByteBuffer(byte[] buf, int offset, int length) throws IOException, ClassNotFoundException
objectFromByteBuffer in interface org.infinispan.commons.marshall.MarshallerIOExceptionClassNotFoundExceptionpublic byte[] objectToByteBuffer(Object object) throws IOException, InterruptedException
objectToByteBuffer in interface org.infinispan.commons.marshall.MarshallerIOExceptionInterruptedExceptionpublic org.infinispan.commons.io.ByteBuffer objectToBuffer(Object object) throws IOException
objectToBuffer in interface org.infinispan.commons.marshall.MarshallerIOExceptionpublic byte[] objectToByteBuffer(Object obj, int estimatedSize) throws IOException, InterruptedException
objectToByteBuffer in interface org.infinispan.commons.marshall.MarshallerIOExceptionInterruptedExceptionCopyright © 2021 JBoss by Red Hat. All rights reserved.