org.apache.activemq
Class ActiveMQOutputStream

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

public class ActiveMQOutputStream
extends java.io.OutputStream
implements Disposable

Version:
$Revision$

Field Summary
protected  int count
           
 
Constructor Summary
ActiveMQOutputStream(ActiveMQConnection connection, ProducerId producerId, ActiveMQDestination destination, java.util.Map properties, int deliveryMode, int priority, long timeToLive)
           
 
Method Summary
 void close()
           
 void dispose()
           
 void flush()
           
 java.lang.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,
                            java.util.Map properties,
                            int deliveryMode,
                            int priority,
                            long timeToLive)
                     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.OutputStream
Throws:
java.io.IOException

dispose

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

write

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

write

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

flush

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

toString

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


Copyright © 2010 Apache Software Foundation. All Rights Reserved.