/** * Configure from a file. * * @param is The config input stream. * @throws IOException If an error occurs reading the config file. * @throws MalformedURLException If the config file contains invalid URLs. * @throws ConfigurationException If the config file is corrupt. * @throws DuplicateRealmException If the config file defines two realms * with the same id. * @throws NoSuchRealmException If the config file defines a main entry * point in a non-existent realm. */ public void configure( InputStream is ) throws IOException, MalformedURLException, ConfigurationException, DuplicateRealmException, NoSuchRealmException { Configurator configurator = new Configurator( this ); configurator.configure( is ); }
/** Configure from a file. * * @param is The config input stream. * * @throws IOException If an error occurs reading the config file. * @throws MalformedURLException If the config file contains invalid URLs. * @throws ConfigurationException If the config file is corrupt. * @throws DuplicateRealmException If the config file defines two realms * with the same id. * @throws NoSuchRealmException If the config file defines a main entry * point in a non-existent realm. */ public void configure(InputStream is) throws IOException, MalformedURLException, ConfigurationException, DuplicateRealmException, NoSuchRealmException { Configurator configurator = new Configurator(this); configurator.configure(is); }