/** * Loads session settings from an input stream. * * @param stream the input stream * @throws ConfigError */ public SessionSettings(InputStream stream) throws ConfigError { this(); load(stream); }
/** * Loads session settings from an input stream. * * @param stream the input stream * @throws ConfigError */ public SessionSettings(InputStream stream) throws ConfigError { this(); load(stream); }
/** * Loads session settings from an input stream. * * @param stream the input stream * @throws ConfigError */ public SessionSettings(InputStream stream) throws ConfigError { this(); load(stream); }
/** * Loads session settings from a file. * * @param filename the path to the file containing the session settings */ public SessionSettings(String filename) throws ConfigError { this(); InputStream in = getClass().getClassLoader().getResourceAsStream(filename); if (in == null) { try { in = new FileInputStream(filename); } catch (final IOException e) { throw new ConfigError(e.getMessage()); } } load(in); }
/** * Loads session settings from a file. * * @param filename the path to the file containing the session settings */ public SessionSettings(String filename) throws ConfigError { this(); InputStream in = getClass().getClassLoader().getResourceAsStream(filename); if (in == null) { try { in = new FileInputStream(filename); } catch (final IOException e) { throw new ConfigError(e.getMessage()); } } load(in); }
/** * Loads session settings from a file. * * @param filename the path to the file containing the session settings */ public SessionSettings(String filename) throws ConfigError { this(); InputStream in = getClass().getClassLoader().getResourceAsStream(filename); if (in == null) { try { in = new FileInputStream(filename); } catch (final IOException e) { throw new ConfigError(e.getMessage()); } } load(in); }