code: long write(OutputStream out) throws IOException {
      // decode macbinary if this was sent
      if (contentType.equals("application/x-macbinary")) {
        out = new MacBinaryDecoderOutputStream(out);
      }
      long size=0;
      int read;
      byte[] buf = new byte[8 * 1024];
      while((read = partInput.read(buf)) != -1) {
        out.write(buf, 0, read);
        size += read;
      }
      return size;
    }
docs: Internal method to write this file part; doesn't check to see
  if it has contents first.
  
  @return number of bytes written.
  @exception IOException	if an input or output exception has occurred.