Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.infinispan.commons.marshall;
 
 
With the introduction of global and cache marshallers, there's a need to separate marshallers but still rely on the same marshalling backend as previously. So, this class acts as a delegator for the new marshallers.

Author(s):
Galder ZamarreƱo
Since:
5.0
public abstract class AbstractDelegatingMarshaller implements StreamingMarshaller {
   @Override
   public void stop() {
      .stop();
   }
   @Override
   public ObjectOutput startObjectOutput(OutputStream osboolean isReentrantfinal int estimatedSizethrows IOException {
      return .startObjectOutput(osisReentrantestimatedSize);
   }
   @Override
   public void finishObjectOutput(ObjectOutput oo) {
   }
   @Override
   public void objectToObjectStream(Object objObjectOutput outthrows IOException {
      .objectToObjectStream(objout);
   }
   @Override
   public ObjectInput startObjectInput(InputStream isboolean isReentrantthrows IOException {
      return .startObjectInput(isisReentrant);
   }
   @Override
   public void finishObjectInput(ObjectInput oi) {
   }
   @Override
      return .objectFromObjectStream(in);
   }
   @Override
      return .objectFromInputStream(is);
   }
   @Override
   public byte[] objectToByteBuffer(Object objint estimatedSizethrows IOExceptionInterruptedException {
      return .objectToByteBuffer(objestimatedSize);
   }
   @Override
   public byte[] objectToByteBuffer(Object objthrows IOExceptionInterruptedException {
      return .objectToByteBuffer(obj);
   }
   @Override
   public Object objectFromByteBuffer(byte[] bufthrows IOExceptionClassNotFoundException {
      return .objectFromByteBuffer(buf);
   }
   @Override
   public Object objectFromByteBuffer(byte[] bufint offsetint lengththrows IOExceptionClassNotFoundException {
      return .objectFromByteBuffer(bufoffsetlength);
   }
   @Override
      return .objectToBuffer(o);
   }
   @Override
   public boolean isMarshallable(Object othrows Exception {
      return .isMarshallable(o);
   }
   @Override
      return .getBufferSizePredictor(o);
   }
New to GrepCode? Check out our FAQ X