public void write(OutputStream os) throws IOException {
  if (os == null) {
    throw new IllegalArgumentException("Output stream is required.");
  }
  this.out=new DataOutputStream(os);
  out.writeBytes(formData.toString());
  out.flush();
  out.close();
}

public void write ( OutputStream os ) throws IOException { if ( os == null ) { throw new IllegalArgumentException ( "Output stream is required." ) ; } this . out = new DataOutputStream ( os ) ; out . writeBytes ( formData . toString ( ) ) ; out . flush ( ) ; out . close ( ) ; }
writes the form data to the output stream .
