code: public static void copy(InputStream input, OutputStream output) throws IOException {
  		byte[] buf = new byte[BUFFER_SIZE];
  		int num = 0;
  
  		while ((num = input.read(buf, 0, buf.length)) != -1) {
  			output.write(buf, 0, num);
  		}
  	}
docs: Writes all the contents of a Reader to a Writer.
  
  @param input
  the input to read from
  @param output
  the output to write to
  @throws java.io.IOException
  if an IOExcption occurs