public static void copy(URL from, OutputStream to) throws IOException {
    """
	Copies all bytes from a URL to an output stream.
	
	@param from the URL to read from
	@param to the output stream
	@throws IOException if an I/O error occurs
    """
    asByteSource(from).copyTo(to);
  }
public static void copy(URL from, OutputStream to) throws IOException {
    asByteSource(from).copyTo(to);
  }
public static void copy ( URL from , OutputStream to ) throws IOException { asByteSource ( from ) . copyTo ( to ) ; }
Copies all bytes from a URL to an output stream.

@param from the URL to read from
@param to the output stream
@throws IOException if an I/O error occurs
Copies all bytes from a URL to an output stream .