remoting-jmx 1.0.4.Final-redhat-1

org.jboss.remotingjmx.protocol
Class CancellableDataOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.FilterOutputStream
          extended by java.io.DataOutputStream
              extended by org.jboss.remotingjmx.protocol.CancellableDataOutputStream
All Implemented Interfaces:
Closeable, DataOutput, Flushable, 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

Field Summary
 
Fields inherited from class java.io.DataOutputStream
written
 
Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
CancellableDataOutputStream(org.jboss.remoting3.MessageOutputStream mos)
           
 
Method Summary
 org.jboss.remoting3.MessageOutputStream cancel()
           
 
Methods inherited from class java.io.DataOutputStream
flush, size, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
 
Methods inherited from class java.io.FilterOutputStream
close, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.io.DataOutput
write
 

Constructor Detail

CancellableDataOutputStream

public CancellableDataOutputStream(org.jboss.remoting3.MessageOutputStream mos)
Method Detail

cancel

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

remoting-jmx 1.0.4.Final-redhat-1

Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.