tds/src/main/java/thredds/server/reify/DownloadController.java
protected void
    makeNetcdf4(NetcdfFile ncfile, String target)
            throws IOException
    {
        try {
            CancelTaskImpl cancel = new CancelTaskImpl();
            FileWriter2 writer = new FileWriter2(ncfile, target,
                    NetcdfFileWriter.Version.netcdf4,
                    chunking);
            writer.getNetcdfFileWriter().setLargeFile(true);
            NetcdfFile ncfileOut = writer.write(cancel);
            if(ncfileOut != null) ncfileOut.close();
            cancel.setDone(true);
        } catch (IOException ioe) {
            throw ioe; // temporary
        }
    }
protected void
    makeNetcdf4(NetcdfFile ncfile, String target)
            throws IOException
    {
        try {
            CancelTaskImpl cancel = new CancelTaskImpl();
            FileWriter2 writer = new FileWriter2(ncfile, target,
                    NetcdfFileWriter.Version.netcdf4,
                    chunking);
            writer.getNetcdfFileWriter().setLargeFile(true);
            NetcdfFile ncfileOut = writer.write(cancel);
            if(ncfileOut != null) ncfileOut.close();
            cancel.setDone(true);
        } catch (IOException ioe) {
            throw ioe; // temporary
        }
    }
protected void makeNetcdf4 ( NetcdfFile ncfile , String target ) throws IOException { try { CancelTaskImpl cancel = new CancelTaskImpl ( ) ; FileWriter2 writer = new FileWriter2 ( ncfile , target , NetcdfFileWriter . Version . netcdf4 , chunking ) ; writer . getNetcdfFileWriter ( ) . setLargeFile ( true ) ; NetcdfFile ncfileOut = writer . write ( cancel ) ; if ( ncfileOut != null ) ncfileOut . close ( ) ; cancel . setDone ( true ) ; } catch ( IOException ioe ) { throw ioe ; // temporary } }
Reifiers
Reifiers