Examples of StrictErrorHandler


Examples of at.tuwien.minimee.util.StrictErrorHandler

     *             if the stream can't be parsed.
     */
    public void reloadFrom(InputStream config) throws MiniMeeException {
        Digester d = new Digester();
        d.setValidating(false);
        StrictErrorHandler errorHandler = new StrictErrorHandler();
        d.setErrorHandler(errorHandler);
        d.setClassLoader(PreservationActionServiceFactory.class.getClassLoader());

        services.clear();

View Full Code Here

Examples of at.tuwien.minimee.util.StrictErrorHandler

    }
   
    private void parseConfig(InputStream config) throws IllegalArgumentException {
        Digester digester = new Digester();
        digester.setValidating(true);
        digester.setErrorHandler(new StrictErrorHandler());

        digester.push(this);
        digester.addObjectCreate("*/tool", Tool.class);
        digester.addSetProperties("*/tool");

 
View Full Code Here

Examples of com.gargoylesoftware.htmlunit.javascript.StrictErrorHandler

            final DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
            factory.setNamespaceAware(true);
            factory.setValidating(false);

            final DocumentBuilder documentBuilder = factory.newDocumentBuilder();
            documentBuilder.setErrorHandler(new StrictErrorHandler());

            XmlDocument_ = documentBuilder.parse(inputSource);
        }
        catch (final SAXParseException parseException) {
            LOG.error("line=[" + parseException.getLineNumber()
View Full Code Here

Examples of com.google.appengine.api.memcache.StrictErrorHandler

        Long workDone = memcache.increment("work_done", 1);

        Stats stats = memcache.getStatistics();
        int ageOfOldestItemMillis = stats.getMaxTimeWithoutAccess();

        memcache.setErrorHandler(new StrictErrorHandler());

        SimpleDateFormat fmt = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss.SSSSSS");
        fmt.setTimeZone(new SimpleTimeZone(0, ""));
        out.println("<p>The time is: " + fmt.format(new Date()) + "</p>");
    }
View Full Code Here

Examples of com.google.appengine.api.memcache.StrictErrorHandler

        Long workDone = memcache.increment("work_done", 1);

        Stats stats = memcache.getStatistics();
        int ageOfOldestItemMillis = stats.getMaxTimeWithoutAccess();

        memcache.setErrorHandler(new StrictErrorHandler());

        SimpleDateFormat fmt = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss.SSSSSS");
        fmt.setTimeZone(new SimpleTimeZone(0, ""));
        out.println("<p>The time is: " + fmt.format(new Date()) + "</p>");
    }
View Full Code Here

Examples of eu.planets_project.pp.plato.xml.StrictErrorHandler

        String configFile = "data/services/PreservationActionRegistries.xml";
        InputStream config = Thread.currentThread().getContextClassLoader().getResourceAsStream(configFile);
       
        Digester digester = new Digester();
        digester.setValidating(false);
        digester.setErrorHandler(new StrictErrorHandler());
       
        digester.push(allRegistries);
        digester.addObjectCreate("*/registry", PreservationActionRegistryDefinition.class);
        digester.addBeanPropertySetter("*/registry/shortname", "shortname");
        digester.addBeanPropertySetter("*/registry/logo", "logo");
View Full Code Here

Examples of eu.planets_project.pp.plato.xml.StrictErrorHandler

        try {

            digester = new Digester();
            digester.setValidating(false);

            StrictErrorHandler errorHandler = new StrictErrorHandler();
            digester.setErrorHandler(errorHandler);

            digester.setUseContextClassLoader(true);

            digester.addObjectCreate("jhove", JHoveFileProperty.class);
View Full Code Here

Examples of eu.planets_project.pp.plato.xml.StrictErrorHandler

     @throws PlatoServiceException if the stream can't be parsed.
     */
    public void reloadFrom(String configFile) throws PlatoServiceException {
        Digester d = new Digester();
        d.setValidating(false);
        StrictErrorHandler errorHandler =  new StrictErrorHandler();
        d.setErrorHandler(errorHandler);
        d.setClassLoader(PreservationActionServiceFactory.class.getClassLoader());

        services.clear();
       
View Full Code Here

Examples of eu.planets_project.pp.plato.xml.StrictErrorHandler

    }
   
    private void load (InputStream configthrows IllegalArgumentException {
        Digester digester = new Digester();
        digester.setValidating(true);
        digester.setErrorHandler(new StrictErrorHandler());
        
        digester.push(this);
        digester.addObjectCreate("*/tool", Tool.class);
        digester.addSetProperties("*/tool");
       
View Full Code Here

Examples of eu.planets_project.pp.plato.xml.StrictErrorHandler

            error = null;


            Digester digester = new Digester();
            digester.setValidating(false);
            digester.setErrorHandler(new StrictErrorHandler());

            digester.push(this);
           
            digester.addCallMethod("*/XCLExplorer/fpmError", "setError",0);

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.