Class AbstractMarshaller
java.lang.Object
org.wildfly.clustering.infinispan.marshalling.AbstractMarshaller
- All Implemented Interfaces:
org.infinispan.commons.marshall.Marshaller,org.infinispan.commons.marshall.StreamAwareMarshaller
- Direct Known Subclasses:
UserMarshaller
public abstract class AbstractMarshaller
extends Object
implements org.infinispan.commons.marshall.Marshaller, org.infinispan.commons.marshall.StreamAwareMarshaller
Abstract marshaller implementation.
- Author:
- Paul Ferraro
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.infinispan.commons.marshall.BufferSizePredictorgetBufferSizePredictor(Object object) objectFromByteBuffer(byte[] bytes) objectFromByteBuffer(byte[] buf, int offset, int length) org.infinispan.commons.io.ByteBufferobjectToBuffer(Object object) byte[]objectToByteBuffer(Object object) byte[]objectToByteBuffer(Object obj, int estimatedSize) intsizeEstimate(Object object) voidstop()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.infinispan.commons.marshall.Marshaller
initialize, isMarshallable, mediaType, startMethods inherited from interface org.infinispan.commons.marshall.StreamAwareMarshaller
isMarshallable, mediaType, readObject, writeObject
-
Constructor Details
-
AbstractMarshaller
public AbstractMarshaller()
-
-
Method Details
-
stop
public void stop()- Specified by:
stopin interfaceorg.infinispan.commons.marshall.Marshaller
-
sizeEstimate
- Specified by:
sizeEstimatein interfaceorg.infinispan.commons.marshall.StreamAwareMarshaller
-
getBufferSizePredictor
- Specified by:
getBufferSizePredictorin interfaceorg.infinispan.commons.marshall.Marshaller
-
objectFromByteBuffer
- Specified by:
objectFromByteBufferin interfaceorg.infinispan.commons.marshall.Marshaller- Throws:
IOExceptionClassNotFoundException
-
objectFromByteBuffer
public Object objectFromByteBuffer(byte[] buf, int offset, int length) throws IOException, ClassNotFoundException - Specified by:
objectFromByteBufferin interfaceorg.infinispan.commons.marshall.Marshaller- Throws:
IOExceptionClassNotFoundException
-
objectToByteBuffer
- Specified by:
objectToByteBufferin interfaceorg.infinispan.commons.marshall.Marshaller- Throws:
IOException
-
objectToBuffer
- Specified by:
objectToBufferin interfaceorg.infinispan.commons.marshall.Marshaller- Throws:
IOException
-
objectToByteBuffer
- Specified by:
objectToByteBufferin interfaceorg.infinispan.commons.marshall.Marshaller- Throws:
IOException
-