code: @Override
  	public void write(byte[] data)
      {
          int newCount = size+data.length; 
          ensureCapacity(newCount);
          System.arraycopy(data, 0, buf, size, data.length);
          size = newCount;
      }
docs: /*
  (non-Javadoc)
  @see java.io.DataOutput#write(byte[])