Save This Page
Home » activemq-parent-5.3.1-source-release » org.apache.kahadb.util » [javadoc | source]
public class: ByteArrayOutputStream [javadoc | source]

All Implemented Interfaces:
    Closeable, Flushable

Very similar to the but this version is not thread safe and the resulting data is returned in a ByteSequence to avoid an extra byte[] allocation.
Field Summary
 byte[] buffer     
 int size     
 public ByteArrayOutputStream() 
 public ByteArrayOutputStream(int capacity) 
Method from org.apache.kahadb.util.ByteArrayOutputStream Summary:
reset,   size,   toByteArray,   toByteSequence,   write,   write
Methods from
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.kahadb.util.ByteArrayOutputStream Detail:
 public  void reset() 
 public int size() 
 public byte[] toByteArray() 
 public ByteSequence toByteSequence() 
 public  void write(int b) 
 public  void write(byte[] b,
    int off,
    int len)