org.apache.activemq
Class ActiveMQOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by org.apache.activemq.ActiveMQOutputStream
All Implemented Interfaces:
Closeable, Flushable, Disposable

public class ActiveMQOutputStream
extends OutputStream
implements Disposable

Version:
$Revision$

Field Summary
protected  int count
           
 
Constructor Summary
ActiveMQOutputStream(ActiveMQConnection connection, ProducerId producerId, ActiveMQDestination destination, Map properties, int deliveryMode, int priority, long timeToLive)
           
 
Method Summary
 void close()
           
 void dispose()
           
 void flush()
           
 String toString()
           
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
 
Methods inherited from class java.io.OutputStream
write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

count

protected int count
Constructor Detail

ActiveMQOutputStream

public ActiveMQOutputStream(ActiveMQConnection connection,
                            ProducerId producerId,
                            ActiveMQDestination destination,
                            Map properties,
                            int deliveryMode,
                            int priority,
                            long timeToLive)
                     throws javax.jms.JMSException
Throws:
javax.jms.JMSException
Method Detail

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Overrides:
close in class OutputStream
Throws:
IOException

dispose

public void dispose()
Specified by:
dispose in interface Disposable

write

public void write(int b)
           throws IOException
Specified by:
write in class OutputStream
Throws:
IOException

write

public void write(byte[] b,
                  int off,
                  int len)
           throws IOException
Overrides:
write in class OutputStream
Throws:
IOException

flush

public void flush()
           throws IOException
Specified by:
flush in interface Flushable
Overrides:
flush in class OutputStream
Throws:
IOException

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011 Apache Software Foundation. All Rights Reserved.