cdm/src/main/java/ucar/nc2/util/IO.java
static public void copyFile(String fileInName, OutputStream out) throws IOException {
    copyFileB(new File(fileInName), out, default_file_buffersize);
  }
static public void copyFile(String fileInName, OutputStream out) throws IOException {
    copyFileB(new File(fileInName), out, default_file_buffersize);
  }
copy file to output stream

@param fileInName open this file
@param out        copy here
@throws java.io.IOException on io error