src/test/java/ucar/geoapi/IOTestCase.java
final NetcdfFile open(final TestData file) throws IOException {
        /*
         * Binary netCDF files need to be read either from a file, or from a byte array in memory.
         * Reading from a file is not possible if the test file is in geoapi-conformance JAR file.
         * But since those test files are less than 15 kilobytes, loading them in memory is okay.
         */
        String location = file.location().toString();
        location = location.substring(location.lastIndexOf('/') + 1);
        return NetcdfFiles.openInMemory(location, file.content());
    }
/**
     * Opens the given netCDF file.
     *
     * @param  file  one of the {@code NETCDF_*} enumeration constants.
     * @return the netCDF file.
     * @throws IOException if an error occurred while opening the file.
     */
Opens the given netCDF file.
@param  file  one of the  NETCDF_* enumeration constants.
@return the netCDF file.
@throws IOException if an error occurred while opening the file.
Opens the given netCDF file . @param file one of the NETCDF_ * enumeration constants . @return the netCDF file . @throws IOException if an error occurred while opening the file .
final NetcdfFile open(final TestData file) throws IOException {
        /*
         * Binary netCDF files need to be read either from a file, or from a byte array in memory.
         * Reading from a file is not possible if the test file is in geoapi-conformance JAR file.
         * But since those test files are less than 15 kilobytes, loading them in memory is okay.
         */
        String location = file.location().toString();
        location = location.substring(location.lastIndexOf('/') + 1);
        return NetcdfFiles.openInMemory(location, file.content());
    }
final NetcdfFile open ( final TestData file ) throws IOException { /*
         * Binary netCDF files need to be read either from a file, or from a byte array in memory.
         * Reading from a file is not possible if the test file is in geoapi-conformance JAR file.
         * But since those test files are less than 15 kilobytes, loading them in memory is okay.
         */ String location = file . location ( ) . toString ( ) ; location = location . substring ( location . lastIndexOf ( '/' ) + 1 ) ; return NetcdfFiles . openInMemory ( location , file . content ( ) ) ; }
Opens the given netCDF file.
Opens the given netCDF file .