org.apache.geronimo.messaging.interceptors
Class StreamOutInterceptor

java.lang.Object
  extended byorg.apache.geronimo.messaging.interceptors.StreamOutInterceptor
All Implemented Interfaces:
MsgOutInterceptor

public class StreamOutInterceptor
extends Object
implements MsgOutInterceptor

Counterpart of StreamInInterceptor. It allows to push Msgs to an OutputStream.

Version:
$Revision: 1.1 $ $Date: 2004/05/11 12:06:40 $

Constructor Summary
StreamOutInterceptor(OutputStream anOut, StreamManager aManager, PushSynchronization aSerialization, ReplacerResolver aResolver)
          Pushes Msgs to an OutputStream.
 
Method Summary
 void push(Msg aMessage)
          Pushes a Msg.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamOutInterceptor

public StreamOutInterceptor(OutputStream anOut,
                            StreamManager aManager,
                            PushSynchronization aSerialization,
                            ReplacerResolver aResolver)
                     throws IOException
Pushes Msgs to an OutputStream. Msgs are written by a StreamOutputStream using the provided StreamManager to encode InputStream in the raw OutputStream.

Parameters:
anOut - OutputStream to write to.
aManager - Used to encode InputStream.
aSerialization - PushSynchronization to be applied when pushing Msgs.
aResolver - Used to replace Objects to be written to anOut.
Throws:
IOException - Indicates an I/O error.
Method Detail

push

public void push(Msg aMessage)
Description copied from interface: MsgOutInterceptor
Pushes a Msg.

Specified by:
push in interface MsgOutInterceptor
Parameters:
aMessage - Msg to be pushed.


Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.