public static final void copy(OutputStream out, InputStream in)
    throws IOException {
        final byte[] buf = new byte[1024*8];
        for (int v; (v = in.read(buf)) >= 0;) {
            if (v > 0)