Class AbstractUnsupportedStreamingMarshaller
- java.lang.Object
-
- org.infinispan.commons.marshall.AbstractMarshaller
-
- org.infinispan.tools.store.migrator.marshaller.common.AbstractUnsupportedStreamingMarshaller
-
- All Implemented Interfaces:
org.infinispan.commons.marshall.Marshaller,org.infinispan.commons.marshall.StreamingMarshaller
- Direct Known Subclasses:
Infinispan8Marshaller,Infinispan9Marshaller
public abstract class AbstractUnsupportedStreamingMarshaller extends org.infinispan.commons.marshall.AbstractMarshaller implements org.infinispan.commons.marshall.StreamingMarshallerAn implementation ofAbstractMarshallerthat throwsUnsupportedOperationExceptionfor all methods.- Since:
- 10.0
- Author:
- Ryan Emerson
-
-
Constructor Summary
Constructors Constructor Description AbstractUnsupportedStreamingMarshaller()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfinishObjectInput(ObjectInput oi)voidfinishObjectOutput(ObjectOutput oo)booleanisMarshallable(Object o)org.infinispan.commons.dataconversion.MediaTypemediaType()ObjectobjectFromByteBuffer(byte[] buf, int offset, int length)ObjectobjectFromObjectStream(ObjectInput in)protected org.infinispan.commons.io.ByteBufferobjectToBuffer(Object o, int estimatedSize)voidobjectToObjectStream(Object obj, ObjectOutput out)voidstart()ObjectInputstartObjectInput(InputStream is, boolean isReentrant)ObjectOutputstartObjectOutput(OutputStream os, boolean isReentrant, int estimatedSize)voidstop()-
Methods inherited from class org.infinispan.commons.marshall.AbstractMarshaller
getBufferSizePredictor, objectFromByteBuffer, objectFromInputStream, objectToBuffer, objectToByteBuffer, objectToByteBuffer
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Method Detail
-
start
public void start()
- Specified by:
startin interfaceorg.infinispan.commons.marshall.Marshaller- Specified by:
startin interfaceorg.infinispan.commons.marshall.StreamingMarshaller
-
stop
public void stop()
- Specified by:
stopin interfaceorg.infinispan.commons.marshall.Marshaller- Specified by:
stopin interfaceorg.infinispan.commons.marshall.StreamingMarshaller
-
objectToBuffer
protected org.infinispan.commons.io.ByteBuffer objectToBuffer(Object o, int estimatedSize) throws IOException, InterruptedException
- Specified by:
objectToBufferin classorg.infinispan.commons.marshall.AbstractMarshaller- Throws:
IOExceptionInterruptedException
-
startObjectOutput
public ObjectOutput startObjectOutput(OutputStream os, boolean isReentrant, int estimatedSize) throws IOException
- Specified by:
startObjectOutputin interfaceorg.infinispan.commons.marshall.StreamingMarshaller- Throws:
IOException
-
finishObjectOutput
public void finishObjectOutput(ObjectOutput oo)
- Specified by:
finishObjectOutputin interfaceorg.infinispan.commons.marshall.StreamingMarshaller
-
objectToObjectStream
public void objectToObjectStream(Object obj, ObjectOutput out) throws IOException
- Specified by:
objectToObjectStreamin interfaceorg.infinispan.commons.marshall.StreamingMarshaller- Throws:
IOException
-
startObjectInput
public ObjectInput startObjectInput(InputStream is, boolean isReentrant) throws IOException
- Specified by:
startObjectInputin interfaceorg.infinispan.commons.marshall.StreamingMarshaller- Throws:
IOException
-
finishObjectInput
public void finishObjectInput(ObjectInput oi)
- Specified by:
finishObjectInputin interfaceorg.infinispan.commons.marshall.StreamingMarshaller
-
objectFromObjectStream
public Object objectFromObjectStream(ObjectInput in) throws IOException, ClassNotFoundException, InterruptedException
- Specified by:
objectFromObjectStreamin interfaceorg.infinispan.commons.marshall.StreamingMarshaller- Throws:
IOExceptionClassNotFoundExceptionInterruptedException
-
objectFromByteBuffer
public Object objectFromByteBuffer(byte[] buf, int offset, int length) throws IOException, ClassNotFoundException
- Specified by:
objectFromByteBufferin interfaceorg.infinispan.commons.marshall.Marshaller- Throws:
IOExceptionClassNotFoundException
-
isMarshallable
public boolean isMarshallable(Object o) throws Exception
- Specified by:
isMarshallablein interfaceorg.infinispan.commons.marshall.Marshaller- Throws:
Exception
-
mediaType
public org.infinispan.commons.dataconversion.MediaType mediaType()
- Specified by:
mediaTypein interfaceorg.infinispan.commons.marshall.Marshaller
-
-