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

All Implemented Interfaces:
    Closeable, Flushable

Very similar to the java.io.ByteArrayOutputStream 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     
Constructor:
 public ByteArrayOutputStream() 
 public ByteArrayOutputStream(int capacity) 
Method from org.apache.kahadb.util.ByteArrayOutputStream Summary:
reset,   size,   toByteArray,   toByteSequence,   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.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)