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
-
RefByteArrayOutputStream()
- Creates a new byte array output stream.
-
RefByteArrayOutputStream(int)
- Creates a new byte array output stream, with a buffer capacity of
the specified size, in bytes.
-
increaseCapacity(int)
- Increases the size of the internally allocated byte array by given amount
-
toByteArray()
- Returns the internally allocated byte array.
RefByteArrayOutputStream
public RefByteArrayOutputStream()
- Creates a new byte array output stream. The buffer capacity is
initially 32 bytes, though its size increases if necessary.
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.
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
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