/** * Constructor which accesses a file in the current directory of the * engine or at an absolute path. */ public FileProvider(String filename) { this.filename = filename; configFile = new File(filename); check(); }
/** * Constructor which accesses a file in the current directory of the * engine or at an absolute path. */ public FileProvider(String filename) { this.filename = filename; configFile = new File(filename); check(); }
/** * Constructor which accesses a file in the current directory of the * engine or at an absolute path. */ public FileProvider(String filename) { this.filename = filename; configFile = new File(filename); check(); }
/** * Constructor which accesses a file relative to a specific base * path. */ public FileProvider(String basepath, String filename) throws ConfigurationException { this.filename = filename; File dir = new File(basepath); /* * If the basepath is not a readable directory, throw an internal * exception to make it easier to debug setup problems. */ if (!dir.exists() || !dir.isDirectory() || !dir.canRead()) { throw new ConfigurationException(Messages.getMessage ("invalidConfigFilePath", basepath)); } configFile = new File(basepath, filename); check(); }
/** * Constructor which accesses a file relative to a specific base * path. */ public FileProvider(String basepath, String filename) throws ConfigurationException { this.filename = filename; File dir = new File(basepath); /* * If the basepath is not a readable directory, throw an internal * exception to make it easier to debug setup problems. */ if (!dir.exists() || !dir.isDirectory() || !dir.canRead()) { throw new ConfigurationException(Messages.getMessage ("invalidConfigFilePath", basepath)); } configFile = new File(basepath, filename); check(); }
/** * Constructor which accesses a file relative to a specific base * path. */ public FileProvider(String basepath, String filename) throws ConfigurationException { this.filename = filename; File dir = new File(basepath); /* * If the basepath is not a readable directory, throw an internal * exception to make it easier to debug setup problems. */ if (!dir.exists() || !dir.isDirectory() || !dir.canRead()) { throw new ConfigurationException(Messages.getMessage ("invalidConfigFilePath", basepath)); } configFile = new File(basepath, filename); check(); }