jhplot.io
Class DbByteArrayOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.ByteArrayOutputStream
          extended by jhplot.io.DbByteArrayOutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable

public class DbByteArrayOutputStream
extends java.io.ByteArrayOutputStream

Extends ByteArrayOutputStream to provide a way of writing the buffer to a DataOutput without re-allocating it.


Constructor Summary
DbByteArrayOutputStream()
           
DbByteArrayOutputStream(int size)
           
 
Method Summary
 void writeTo(java.io.DataOutput dstr)
          Writes the full contents of the buffer a DataOutput stream.
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DbByteArrayOutputStream

public DbByteArrayOutputStream()

DbByteArrayOutputStream

public DbByteArrayOutputStream(int size)
Method Detail

writeTo

public void writeTo(java.io.DataOutput dstr)
             throws java.io.IOException
Writes the full contents of the buffer a DataOutput stream.

Throws:
java.io.IOException


jHepWork 2.1 (C) S.Chekanov