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:
Infinispan10Marshaller,Infinispan8Marshaller,Infinispan9Marshaller
public abstract class AbstractUnsupportedStreamingMarshaller
extends org.infinispan.commons.marshall.AbstractMarshaller
implements org.infinispan.commons.marshall.StreamingMarshaller
An implementation of
AbstractMarshaller that throws UnsupportedOperationException for all methods.- Since:
- 10.0
- Author:
- Ryan Emerson
-
Field Summary
Fields inherited from class org.infinispan.commons.marshall.AbstractMarshaller
marshallableTypeHints -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidbooleanorg.infinispan.commons.dataconversion.MediaTypeobjectFromByteBuffer(byte[] buf, int offset, int length) protected org.infinispan.commons.io.ByteBufferobjectToBuffer(Object o, int estimatedSize) voidobjectToObjectStream(Object obj, ObjectOutput out) voidstart()startObjectInput(InputStream is, boolean isReentrant) startObjectOutput(OutputStream os, boolean isReentrant, int estimatedSize) voidstop()Methods inherited from class org.infinispan.commons.marshall.AbstractMarshaller
getBufferSizePredictor, objectFromByteBuffer, objectFromInputStream, objectToBuffer, objectToByteBuffer, objectToByteBuffer, objectToOutputStreamMethods 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
getBufferSizePredictor, initialize, objectFromByteBuffer, objectToBuffer, objectToByteBuffer, objectToByteBufferMethods inherited from interface org.infinispan.commons.marshall.StreamingMarshaller
objectFromInputStream
-
Constructor Details
-
AbstractUnsupportedStreamingMarshaller
public AbstractUnsupportedStreamingMarshaller()
-
-
Method Details
-
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
- Specified by:
finishObjectOutputin interfaceorg.infinispan.commons.marshall.StreamingMarshaller
-
objectToObjectStream
- Specified by:
objectToObjectStreamin interfaceorg.infinispan.commons.marshall.StreamingMarshaller- Throws:
IOException
-
startObjectInput
- Specified by:
startObjectInputin interfaceorg.infinispan.commons.marshall.StreamingMarshaller- Throws:
IOException
-
finishObjectInput
- 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
-
mediaType
public org.infinispan.commons.dataconversion.MediaType mediaType()- Specified by:
mediaTypein interfaceorg.infinispan.commons.marshall.Marshaller
-