src/org/kocakosm/pitaya/io/XFiles.java
public static void cp(File src, OutputStream dst) throws IOException
	{
		InputStream in = newInputStream(src);
		try {
			ByteStreams.copy(in, dst);
		} finally {
			IO.close(in);
		}
	}
public static void cp(File src, OutputStream dst) throws IOException
	{
		InputStream in = newInputStream(src);
		try {
			ByteStreams.copy(in, dst);
		} finally {
			IO.close(in);
		}
	}
public static void cp ( File src , OutputStream dst ) throws IOException { InputStream in = newInputStream ( src ) ; try { ByteStreams . copy ( in , dst ) ; } finally { IO . close ( in ) ; } }
Copies the contents of the given input {@code File} to the given
{@code OutputStream}. Named after the Unix command of the same name.

@param src the file to copy from.
@param dst the stream to write to.

@throws NullPointerException if one of the arguments is {@code null}.
@throws IOException if {@code src} does not exist, or if it is a
directory rather than a regular file, or if it can't be opened
for reading, or if an I/O error occurs during the process.
@throws SecurityException if a security manager exists denies read
access to {@code src}.
Copies the contents of the given input { @code File } to the given { @code OutputStream } . Named after the Unix command of the same name .