Code example for File

Methods: exists, isFile

0
						Configuration.class.getResourceAsStream("/" + t4jProps));
	} 
 
	private static boolean loadProperties(Properties props, String path) {
		try { 
			File file = new File(path);
			if (file.exists() && file.isFile()) {
				props.load(new FileInputStream(file));
				return true; 
			} 
		} catch (Exception ignore) {
		} 
		return false; 
	} 
 
	private static boolean loadProperties(Properties props, InputStream is) {
		try { 
			props.load(is);
			return true; 
		} catch (Exception ignore) {
		}