org.jboss.remoting3
Class MessageOutputStream
java.lang.Object
java.io.OutputStream
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
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.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MessageOutputStream
public MessageOutputStream()
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
Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.