All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class magician.Utils.RefByteArrayOutputStream

java.lang.Object
   |
   +----java.io.OutputStream
           |
           +----java.io.ByteArrayOutputStream
                   |
                   +----magician.Utils.RefByteArrayOutputStream

public class RefByteArrayOutputStream
extends ByteArrayOutputStream

Constructor Index

 o RefByteArrayOutputStream()
Creates a new byte array output stream.
 o RefByteArrayOutputStream(int)
Creates a new byte array output stream, with a buffer capacity of the specified size, in bytes.

Method Index

 o increaseCapacity(int)
Increases the size of the internally allocated byte array by given amount
 o toByteArray()
Returns the internally allocated byte array.

Constructors

 o RefByteArrayOutputStream
 public RefByteArrayOutputStream()
Creates a new byte array output stream. The buffer capacity is initially 32 bytes, though its size increases if necessary.

 o RefByteArrayOutputStream
 public RefByteArrayOutputStream(int size)
Creates a new byte array output stream, with a buffer capacity of the specified size, in bytes.

Parameters:
size - the initial size.

Methods

 o toByteArray
 public byte[] toByteArray()
Returns the internally allocated byte array.

Returns:
the current contents of this output stream, as a byte array.
Overrides:
toByteArray in class ByteArrayOutputStream
See Also:
size
 o increaseCapacity
 public void increaseCapacity(int size)
Increases the size of the internally allocated byte array by given amount

Parameters:
size - the size in bytes to increase

All Packages  Class Hierarchy  This Package  Previous  Next  Index
1