jxl.biff
Class ByteArray

java.lang.Object
  extended byjxl.biff.ByteArray

public class ByteArray
extends java.lang.Object

A growable array of bytes


Constructor Summary
ByteArray()
          Constructor
ByteArray(int gs)
          Constructor
 
Method Summary
 void add(byte b)
          Adds a byte onto the array
 void add(byte[] b)
          Adds an array of bytes onto the array
 byte[] getBytes()
          Gets the complete array
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteArray

public ByteArray()
Constructor


ByteArray

public ByteArray(int gs)
Constructor

Parameters:
gs -
Method Detail

add

public void add(byte b)
Adds a byte onto the array

Parameters:
b - the byte

add

public void add(byte[] b)
Adds an array of bytes onto the array

Parameters:
b - the array of bytes

getBytes

public byte[] getBytes()
Gets the complete array

Returns:
the array