org.mbari.siam.tests.linkBenchmark2.compression
Class CountedByteArrayOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.ByteArrayOutputStream
          extended by org.mbari.siam.tests.linkBenchmark2.compression.CountedByteArrayOutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable

public class CountedByteArrayOutputStream
extends java.io.ByteArrayOutputStream

ByteArrayOutputStream that can return count of valid bytes

Author:
Bob Herlien

Field Summary
 
Fields inherited from class java.io.ByteArrayOutputStream
buf, count
 
Constructor Summary
CountedByteArrayOutputStream()
           
 
Method Summary
 int count()
           
 
Methods inherited from class java.io.ByteArrayOutputStream
close, reset, size, toByteArray, toString, toString, toString, write, write, writeTo
 
Methods inherited from class java.io.OutputStream
flush, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CountedByteArrayOutputStream

public CountedByteArrayOutputStream()
Method Detail

count

public int count()


Copyright © 2003 MBARI.

The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.