docs: public static int copy(InputStream in, OutputStream out) throws IOException {
  		int byteCount = 0;
  		byte[] buffer = new byte[BUFFER_SIZE];
  		int bytesRead = -1;
  		while ((bytesRead = in.read(buffer)) != -1) {
  			out.write(buffer, 0, bytesRead);
  			byteCount += bytesRead;
  		}
  		out.flush();
  		return byteCount;
  	}