public String loadOverrideDoc(String infoDir, String dataSet) throws DAP2Exception {
    """
	************************************************************************
	Checks the info directory for user supplied override documents for the
	passed dataset name. If there are overridedocuments present then the
	contents are read and returned to the caller as a string.
	
	@param dataSet The name of the dataset.
    """

        StringBuilder userDoc = new StringBuilder();
        String overrideFile = dataSet + ".ovr";

        //Try to open and read the override file for this dataset.
        try {
            File fin = new File(infoDir + overrideFile);
            try (
            BufferedReader svIn = new BufferedReader(new InputStreamReader(new FileInputStream(fin),Util.UTF8));
            ) {
                boolean done = false;
                while(!done) {
                    String line = svIn.readLine();
                    if(line == null) {
                        done = true;
                    } else {
                        userDoc.append(line);
                        userDoc.append("\n");
                    }
                }
            }
        } catch (FileNotFoundException fnfe) {
            userDoc.append("<h2>No Could Not Open Override Document.</h2><hr>");
            return (null);
        } catch (IOException ioe) {
            throw(new DAP2Exception(opendap.dap.DAP2Exception.UNKNOWN_ERROR, ioe.getMessage()));
        }

        return (userDoc.toString());
    }
public String loadOverrideDoc(String infoDir, String dataSet) throws DAP2Exception {

        StringBuilder userDoc = new StringBuilder();
        String overrideFile = dataSet + ".ovr";

        //Try to open and read the override file for this dataset.
        try {
            File fin = new File(infoDir + overrideFile);
            try (
            BufferedReader svIn = new BufferedReader(new InputStreamReader(new FileInputStream(fin),Util.UTF8));
            ) {
                boolean done = false;
                while(!done) {
                    String line = svIn.readLine();
                    if(line == null) {
                        done = true;
                    } else {
                        userDoc.append(line);
                        userDoc.append("\n");
                    }
                }
            }
        } catch (FileNotFoundException fnfe) {
            userDoc.append("<h2>No Could Not Open Override Document.</h2><hr>");
            return (null);
        } catch (IOException ioe) {
            throw(new DAP2Exception(opendap.dap.DAP2Exception.UNKNOWN_ERROR, ioe.getMessage()));
        }

        return (userDoc.toString());
    }
public String loadOverrideDoc ( String infoDir , String dataSet ) throws DAP2Exception { StringBuilder userDoc = new StringBuilder ( ) ; String overrideFile = dataSet + ".ovr" ; //Try to open and read the override file for this dataset. try { File fin = new File ( infoDir + overrideFile ) ; try ( BufferedReader svIn = new BufferedReader ( new InputStreamReader ( new FileInputStream ( fin ) , Util . UTF8 ) ) ; ) { boolean done = false ; while ( ! done ) { String line = svIn . readLine ( ) ; if ( line == null ) { done = true ; } else { userDoc . append ( line ) ; userDoc . append ( "\n" ) ; } } } } catch ( FileNotFoundException fnfe ) { userDoc . append ( "<h2>No Could Not Open Override Document.</h2><hr>" ) ; return ( null ) ; } catch ( IOException ioe ) { throw ( new DAP2Exception ( opendap . dap . DAP2Exception . UNKNOWN_ERROR , ioe . getMessage ( ) ) ) ; } return ( userDoc . toString ( ) ) ; }
************************************************************************
Checks the info directory for user supplied override documents for the
passed dataset name. If there are overridedocuments present then the
contents are read and returned to the caller as a string.

@param dataSet The name of the dataset.
************************************************************************ Checks the info directory for user supplied override documents for the passed dataset name . If there are overridedocuments present then the contents are read and returned to the caller as a string .