code: public void write(byte[] data)
          throws IOException, IllegalStateException {
          LOG.trace("enter HttpConnection.write(byte[])");
          this.write(data, 0, data.length);
      }
docs: Writes the specified bytes to the output stream.
  
  @param data the data to be written
  @throws IllegalStateException if not connected
  @throws IOException if an I/O problem occurs
  @see #write(byte[],int,int)