Package org.onemind.commons.java.xml.digest

Examples of org.onemind.commons.java.xml.digest.SaxDigesterHandler


     * @throws SAXException if there's parsing problem
     * @throws Exception if there's other problem
     */
    public static JxpProcessor getProcessor(InputStream config) throws SAXException, IOException, Exception
    {
        SaxDigesterHandler handler = new SaxDigesterHandler();
        SAXParser parser = SAXParserFactory.newInstance().newSAXParser();
        JxpConfigDigester dig = new JxpConfigDigester();
        handler.addDigester(dig);
        parser.parse(config, handler);
        return dig.getProcessor();
    }
View Full Code Here


        File comOptsFile = new File(getServletContext().getRealPath(configFile));
        if (comOptsFile.exists())
        {
            try
            {
                SaxDigesterHandler handler = new SaxDigesterHandler();
                ComponentOptions comOpts = new ComponentOptions();
                handler.addDigester(comOpts);
                handler.parse(new FileInputStream(comOptsFile));
                _comOptsFile = comOptsFile;
                return comOpts;
            } catch (Exception ex)
            {
                throw new ServletException("Unable to initialize " + KEY_COMPONENT_OPTIONS + comOptsFile.getAbsolutePath(), ex);
View Full Code Here

     * @throws IOException
     * @throws ParserConfigurationException
     */
    public static SwingWebContext createContext(InputStream xmlIS) throws ParserConfigurationException, SAXException, IOException
    {
        SaxDigesterHandler handler = new SaxDigesterHandler();
        SwingWebContextDigester dig = new SwingWebContextDigester();
        handler.addDigester("swingweb", dig);
        handler.parse(xmlIS);
        return dig.getContext();
    }
View Full Code Here

TOP

Related Classes of org.onemind.commons.java.xml.digest.SaxDigesterHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.