code: public static void transfer(final InputStream input,
  			final OutputStream output) throws Exception {
  		final byte[] data = new byte[SIZE];
  		while (true) {
  			final int count = input.read(data, 0, SIZE);
  			if (count == EOF) {
  				break;
  			}
  			output.write(data, 0, count);
  		}
  	}
docs: Perform stream copy.
  
  @param input
  The input stream.
  @param output
  The output stream.
  @throws Exception
  The stream copy failure exception.