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.jboss.marshalling.commons.StreamingMarshaller
Direct Known Subclasses:
Infinispan10Marshaller, Infinispan8Marshaller, Infinispan9Marshaller

public abstract class AbstractUnsupportedStreamingMarshaller extends org.infinispan.commons.marshall.AbstractMarshaller implements org.infinispan.jboss.marshalling.commons.StreamingMarshaller
An implementation of AbstractMarshaller that throws UnsupportedOperationException for all methods.
Since:
10.0
Author:
Ryan Emerson
  • Constructor Details

    • AbstractUnsupportedStreamingMarshaller

      public AbstractUnsupportedStreamingMarshaller()
  • Method Details

    • start

      public void start()
      Specified by:
      start in interface org.infinispan.commons.marshall.Marshaller
      Specified by:
      start in interface org.infinispan.jboss.marshalling.commons.StreamingMarshaller
    • stop

      public void stop()
      Specified by:
      stop in interface org.infinispan.commons.marshall.Marshaller
      Specified by:
      stop in interface org.infinispan.jboss.marshalling.commons.StreamingMarshaller
    • objectToBuffer

      protected org.infinispan.commons.io.ByteBuffer objectToBuffer(Object o, int estimatedSize) throws IOException, InterruptedException
      Specified by:
      objectToBuffer in class org.infinispan.commons.marshall.AbstractMarshaller
      Throws:
      IOException
      InterruptedException
    • startObjectOutput

      public ObjectOutput startObjectOutput(OutputStream os, boolean isReentrant, int estimatedSize) throws IOException
      Specified by:
      startObjectOutput in interface org.infinispan.jboss.marshalling.commons.StreamingMarshaller
      Throws:
      IOException
    • finishObjectOutput

      public void finishObjectOutput(ObjectOutput oo)
      Specified by:
      finishObjectOutput in interface org.infinispan.jboss.marshalling.commons.StreamingMarshaller
    • objectToObjectStream

      public void objectToObjectStream(Object obj, ObjectOutput out) throws IOException
      Specified by:
      objectToObjectStream in interface org.infinispan.jboss.marshalling.commons.StreamingMarshaller
      Throws:
      IOException
    • startObjectInput

      public ObjectInput startObjectInput(InputStream is, boolean isReentrant) throws IOException
      Specified by:
      startObjectInput in interface org.infinispan.jboss.marshalling.commons.StreamingMarshaller
      Throws:
      IOException
    • finishObjectInput

      public void finishObjectInput(ObjectInput oi)
      Specified by:
      finishObjectInput in interface org.infinispan.jboss.marshalling.commons.StreamingMarshaller
    • objectFromObjectStream

      public Object objectFromObjectStream(ObjectInput in) throws IOException, ClassNotFoundException, InterruptedException
      Specified by:
      objectFromObjectStream in interface org.infinispan.jboss.marshalling.commons.StreamingMarshaller
      Throws:
      IOException
      ClassNotFoundException
      InterruptedException
    • objectFromByteBuffer

      public Object objectFromByteBuffer(byte[] buf, int offset, int length) throws IOException, ClassNotFoundException
      Specified by:
      objectFromByteBuffer in interface org.infinispan.commons.marshall.Marshaller
      Throws:
      IOException
      ClassNotFoundException
    • isMarshallable

      public boolean isMarshallable(Object o) throws Exception
      Specified by:
      isMarshallable in interface org.infinispan.commons.marshall.Marshaller
      Throws:
      Exception
    • mediaType

      public org.infinispan.commons.dataconversion.MediaType mediaType()
      Specified by:
      mediaType in interface org.infinispan.commons.marshall.Marshaller