Home » activemq-parent-5.3.1-source-release » org.apache » activemq » transport » tcp » [javadoc | source]
org.apache.activemq.transport.tcp
public class: TcpBufferedOutputStream [javadoc | source]
java.lang.Object
   java.io.OutputStream
      java.io.FilterOutputStream
         org.apache.activemq.transport.tcp.TcpBufferedOutputStream

All Implemented Interfaces:
    Closeable, Flushable

An optimized buffered outputstream for Tcp
Fields inherited from java.io.FilterOutputStream:
out
Constructor:
 public TcpBufferedOutputStream(OutputStream out) 
    Constructor
    Parameters:
    out -
 public TcpBufferedOutputStream(OutputStream out,
    int size) 
    Creates a new buffered output stream to write data to the specified underlying output stream with the specified buffer size.
    Parameters:
    out - the underlying output stream.
    size - the buffer size.
    Throws:
    IllegalArgumentException - if size <= 0.
Method from org.apache.activemq.transport.tcp.TcpBufferedOutputStream Summary:
close,   flush,   getWriteTimestamp,   isWriting,   write,   write
Methods from java.io.FilterOutputStream:
close,   flush,   write,   write,   write
Methods from java.io.OutputStream:
close,   flush,   write,   write,   write
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.activemq.transport.tcp.TcpBufferedOutputStream Detail:
 public  void close() throws IOException 
    close this stream
 public  void flush() throws IOException 
    flush the data to the output stream This doesn't call flush on the underlying outputstream, because Tcp is particularly efficent at doing this itself ....
 public long getWriteTimestamp() 
 public boolean isWriting() 
 public  void write(int b) throws IOException 
    write a byte on to the stream
 public  void write(byte[] b,
    int off,
    int len) throws IOException 
    write a byte array to the stream