org.apache.activemq
Class ActiveMQInputStream
java.lang.Object
java.io.InputStream
org.apache.activemq.ActiveMQInputStream
- All Implemented Interfaces:
- Closeable, ActiveMQDispatcher
public class ActiveMQInputStream
- extends InputStream
- implements ActiveMQDispatcher
- Version:
- $Revision$
ActiveMQInputStream
public ActiveMQInputStream(ActiveMQConnection connection,
ConsumerId consumerId,
ActiveMQDestination dest,
String selector,
boolean noLocal,
String name,
int prefetch)
throws JMSException
- Throws:
JMSException
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Overrides:
close
in class InputStream
- Throws:
IOException
dispose
public void dispose()
receive
public ActiveMQMessage receive()
throws JMSException
- Throws:
JMSException
checkClosed
protected void checkClosed()
throws IllegalStateException
- Throws:
IllegalStateException
read
public int read()
throws IOException
- Specified by:
read
in class InputStream
- Throws:
IOException
read
public int read(byte[] b,
int off,
int len)
throws IOException
- Overrides:
read
in class InputStream
- Throws:
IOException
dispatch
public void dispatch(MessageDispatch md)
- Specified by:
dispatch
in interface ActiveMQDispatcher
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2005-2011 Apache Software Foundation. All Rights Reserved.