private void copy(final InputStream input, final OutputStream output, final String name) throws IOException { final byte[] buffer = new byte[1024]; int len; while ((len = read(input, buffer, name)) != -1) { output.write(buffer, 0, len); } }
private void copy(final InputStream input, final OutputStream output, final String name) throws IOException { final byte[] buffer = new byte[1024]; int len; while ((len = read(input, buffer, name)) != -1) { output.write(buffer, 0, len); } }