org.apache.activemq
Class ActiveMQInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by org.apache.activemq.ActiveMQInputStream
All Implemented Interfaces:
java.io.Closeable, ActiveMQDispatcher

public class ActiveMQInputStream
extends java.io.InputStream
implements ActiveMQDispatcher

Version:
$Revision$

Constructor Summary
ActiveMQInputStream(ActiveMQConnection connection, ConsumerId consumerId, ActiveMQDestination dest, java.lang.String selector, boolean noLocal, java.lang.String name, int prefetch)
           
 
Method Summary
protected  void checkClosed()
           
 void close()
           
 void dispatch(MessageDispatch md)
           
 void dispose()
           
 int read()
           
 int read(byte[] b, int off, int len)
           
 ActiveMQMessage receive()
           
 java.lang.String toString()
           
 
Methods inherited from class java.io.InputStream
available, mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ActiveMQInputStream

public ActiveMQInputStream(ActiveMQConnection connection,
                           ConsumerId consumerId,
                           ActiveMQDestination dest,
                           java.lang.String selector,
                           boolean noLocal,
                           java.lang.String name,
                           int prefetch)
                    throws javax.jms.JMSException
Throws:
javax.jms.JMSException
Method Detail

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.InputStream
Throws:
java.io.IOException

dispose

public void dispose()

receive

public ActiveMQMessage receive()
                        throws javax.jms.JMSException
Throws:
javax.jms.JMSException

checkClosed

protected void checkClosed()
                    throws javax.jms.IllegalStateException
Throws:
javax.jms.IllegalStateException

read

public int read()
         throws java.io.IOException
Specified by:
read in class java.io.InputStream
Throws:
java.io.IOException

read

public int read(byte[] b,
                int off,
                int len)
         throws java.io.IOException
Overrides:
read in class java.io.InputStream
Throws:
java.io.IOException

dispatch

public void dispatch(MessageDispatch md)
Specified by:
dispatch in interface ActiveMQDispatcher

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2011 Apache Software Foundation. All Rights Reserved.