src/org/kocakosm/pitaya/io/Resource.java
public void copyTo(OutputStream out) throws IOException
	{
		InputStream in = url.openStream();
		try {
			ByteStreams.copy(in, out);
		} finally {
			IO.close(in);
		}
	}
public void copyTo(OutputStream out) throws IOException
	{
		InputStream in = url.openStream();
		try {
			ByteStreams.copy(in, out);
		} finally {
			IO.close(in);
		}
	}
public void copyTo ( OutputStream out ) throws IOException { InputStream in = url . openStream ( ) ; try { ByteStreams . copy ( in , out ) ; } finally { IO . close ( in ) ; } }
Copies the content of this resource to the specified stream.

@param out the stream to copy to.

@throws NullPointerException if {@code out} is {@code null}.
@throws IOException if an I/O error occurs during the process.
Copies the content of this resource to the specified stream .