JBoss Remoting 3 3.2.0.Beta2-redhat-1

org.jboss.remoting3
Class MessageOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by org.jboss.remoting3.MessageOutputStream
All Implemented Interfaces:
Closeable, Flushable, org.xnio.Cancellable

public abstract class MessageOutputStream
extends OutputStream
implements org.xnio.Cancellable

An output stream for a message.

Author:
David M. Lloyd

Constructor Summary
MessageOutputStream()
           
 
Method Summary
abstract  MessageOutputStream cancel()
          Cancel this message stream.
abstract  void close()
          Close this message stream.
abstract  void flush()
          Flush this message stream.
 
Methods inherited from class java.io.OutputStream
write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageOutputStream

public MessageOutputStream()
Method Detail

flush

public abstract void flush()
                    throws IOException
Flush this message stream. Any unwritten, buffered bytes are sent to the remote side.

Specified by:
flush in interface Flushable
Overrides:
flush in class OutputStream
Throws:
IOException - if an error occurs while flushing the stream

close

public abstract void close()
                    throws IOException
Close this message stream. If the stream is already closed or cancelled, this method has no effect. After this method is called, any further attempts to write to the stream will result in an exception.

Specified by:
close in interface Closeable
Overrides:
close in class OutputStream
Throws:
IOException - if a error occurs while closing the stream

cancel

public abstract MessageOutputStream cancel()
Cancel this message stream. If the stream is already closed or cancelled, this method has no effect. After this method is called, any further attempts to write to the stream will result in an exception.

Specified by:
cancel in interface org.xnio.Cancellable
Returns:
this stream

JBoss Remoting 3 3.2.0.Beta2-redhat-1

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