code: public static long copyStream(File dst, InputStream src) throws IOException {
  		long copied;
  
  		try (FileOutputStream dstStream = new FileOutputStream(dst)) {
  			copied = copyStream(dstStream, src);
  		}
  		return copied;
  	}
docs: Copies all bytes from an {@linkplain InputStream} to a {@linkplain File}.
  
  @param dst the {@linkplain File} to copy to.
  @param src the {@linkplain InputStream} to copy from.
  @return the number of copied bytes.
  @throws IOException if an I/O error occurs.