Package org.apache.ws.jaxme.xs.util

Examples of org.apache.ws.jaxme.xs.util.LoggingContentHandler


        pReader = transformer.getTransformedXMLReader();
      }
      if (logDir != null) {
        File tmpFile = File.createTempFile("jaxmexs", ".xsd", new File(logDir));
        fos = new FileOutputStream(tmpFile);
        LoggingContentHandler lch = new LoggingContentHandler(fos);
        lch.setParent(pReader);
        pReader = lch;
        String msg = "Read from " + pSource.getPublicId() + ", " + pSource.getSystemId() + " at " + new Date();
        lch.comment(msg.toCharArray(), 0, msg.length());
      }
      pReader.setContentHandler(pHandler);
      LocatorImpl loc = new LocatorImpl();
      loc.setSystemId(pSource.getSystemId());
      loc.setPublicId(pSource.getPublicId());
View Full Code Here


      XMLReader xr = factory.newXMLReader(isValidating());
      String logDir = System.getProperty("org.apache.ws.jaxme.xs.logDir");
      if (logDir != null) {
        File tmpFile = File.createTempFile("jaxmexs", ".xsd", new File(logDir));
        fos = new FileOutputStream(tmpFile);
        LoggingContentHandler lch = new LoggingContentHandler(fos);
        lch.setParent(xr);
        xr = lch;
        String msg = "Read from " + pSource.getPublicId() + ", " + pSource.getSystemId() + " at " + new Date();
        lch.comment(msg.toCharArray(), 0, msg.length());
      }
      xr.setContentHandler(xsSAXParser);
      xr.parse(pSource);
      if (fos != null) {
        fos.close();
View Full Code Here

TOP

Related Classes of org.apache.ws.jaxme.xs.util.LoggingContentHandler

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.