org.apache.geronimo.messaging.interceptors
Class StreamInInterceptor

java.lang.Object
  extended byorg.apache.geronimo.messaging.interceptors.StreamInInterceptor
All Implemented Interfaces:
MsgInInterceptor

public class StreamInInterceptor
extends Object
implements MsgInInterceptor

Allows popping Msgs from an InputStream.

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

Constructor Summary
StreamInInterceptor(InputStream anIn, StreamManager aManager, PopSynchronization aSynchronization, ReplacerResolver aResolver)
          Pops Msgs from an InputStream.
 
Method Summary
 Msg pop()
          Pops a Msg from the underlying Msg source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamInInterceptor

public StreamInInterceptor(InputStream anIn,
                           StreamManager aManager,
                           PopSynchronization aSynchronization,
                           ReplacerResolver aResolver)
                    throws IOException
Pops Msgs from an InputStream. Msgs are read by a StreamInputStream using the provided StreamManager to resolve InputStreams encoded in the raw InputStream.

Parameters:
anIn - InputStream to read from.
aManager - Used to resolve encoded InputStreams.
aSynchronization - PopSynchronization applied by this instance.
aResolver - Used to resolve Objects read from anIn.
Throws:
IOException - Indicates an I/O error.
Method Detail

pop

public Msg pop()
Description copied from interface: MsgInInterceptor
Pops a Msg from the underlying Msg source.

Specified by:
pop in interface MsgInInterceptor
Returns:
Msg.


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