code: public static void copy(InputStream input, OutputStream output, boolean closeStreams) throws IOException {
  		try {
  			copy(input, output);
  		} finally {
  			if (closeStreams) {
  				close(input);
  				close(output);
  			}
  		}
  	}
docs: Writes all the contents of an InputStream to an OutputStream.
  
  @param input
  the input stream to read from
  @param output
  the output stream to write to
  @param closeStreams
  the flag indicating if the stream must be close at the end,
  even if an exception occurs
  @throws java.io.IOException
  if an IOExcption occurs