Class CancellableDataOutputStream

java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
java.io.DataOutputStream
org.jboss.remotingjmx.protocol.CancellableDataOutputStream
All Implemented Interfaces:
Closeable, DataOutput, Flushable, AutoCloseable, org.xnio.Cancellable

public class CancellableDataOutputStream extends DataOutputStream implements org.xnio.Cancellable
A DataOutputStream implementation to wrap a MessageOutputStream to allow it to be cancelled.
Author:
Darran Lofthouse
  • Constructor Details

    • CancellableDataOutputStream

      public CancellableDataOutputStream(org.jboss.remoting3.MessageOutputStream mos)
  • Method Details

    • cancel

      public org.jboss.remoting3.MessageOutputStream cancel()
      Specified by:
      cancel in interface org.xnio.Cancellable