src/main/java/js/servlet/TinyConfigBuilder.java
protected static void loadXML(InputStream inputStream, Loader loader) throws ConfigException {
		try {
			SAXParserFactory factory = SAXParserFactory.newInstance();
			SAXParser parser = factory.newSAXParser();
			XMLReader reader = parser.getXMLReader();
			reader.setContentHandler(loader);
			reader.parse(new InputSource(inputStream));
		} catch (Exception e) {
			throw new ConfigException("Fail to load configuration document from file |%s|: %s", inputStream, e);
		}
	}
protected static void loadXML(InputStream inputStream, Loader loader) throws ConfigException {
		try {
			SAXParserFactory factory = SAXParserFactory.newInstance();
			SAXParser parser = factory.newSAXParser();
			XMLReader reader = parser.getXMLReader();
			reader.setContentHandler(loader);
			reader.parse(new InputSource(inputStream));
		} catch (Exception e) {
			throw new ConfigException("Fail to load configuration document from file |%s|: %s", inputStream, e);
		}
	}
protected static void loadXML ( InputStream inputStream , Loader loader ) throws ConfigException { try { SAXParserFactory factory = SAXParserFactory . newInstance ( ) ; SAXParser parser = factory . newSAXParser ( ) ; XMLReader reader = parser . getXMLReader ( ) ; reader . setContentHandler ( loader ) ; reader . parse ( new InputSource ( inputStream ) ) ; } catch ( Exception e ) { throw new ConfigException ( "Fail to load configuration document from file |%s|: %s" , inputStream , e ) ; } }
Load configuration document from file.

@param inputStream configuration XML file,
@param loader SAX handler in charge of configuration loading.
@throws ConfigException if XML document loading fails.
Load configuration document from file .