Examples of BodyFilter


Examples of de.danet.an.util.sax.BodyFilter

        ("", newRootTag, newRootTag, new AttributesImpl());
    // content
    Iterator it = contentParameters.iterator();
    while (it.hasNext()) {
        SAXEventBuffer c = (SAXEventBuffer)it.next();
        c.emit(new BodyFilter(th));
    }
    th.endElement("", newRootTag, newRootTag);
    th.endDocument();
      }
      seb.pack();
View Full Code Here

Examples of de.danet.an.util.sax.BodyFilter

        XmlObject result = (XmlObject) wrap.unwrap();
        XmlCursor cursor = result.newCursor();
        result = cursor.getObject();
        ContentHandler ch = new NamespaceAttributesFilter(seb);
        if (fragment) {
            ch = new BodyFilter (ch);
        }
        result.save(ch, seb, (new XmlOptions()).setSaveOuter());
    }
View Full Code Here

Examples of de.danet.an.util.sax.BodyFilter

    private void convertWithTempRoot (ContentHandler ch, SAXEventBuffer cb)
  throws SAXException {
  ch.startDocument();
  ch.startElement
      ("", "temporary-root", "temporary-root", new AttributesImpl());
  cb.emit(new BodyFilter (ch));
  ch.endElement ("", "temporary-root", "temporary-root");
  ch.endDocument();
    }
View Full Code Here

Examples of de.danet.an.util.sax.BodyFilter

        XmlObject result = (XmlObject) wrap.unwrap();
        XmlCursor cursor = result.newCursor();
        result = cursor.getObject();
        ContentHandler ch = seb;
        if (fragment) {
            ch = new BodyFilter (ch);
        }
        result.save(ch, seb, (new XmlOptions()).setSaveOuter());
    }
View Full Code Here

Examples of de.danet.an.util.sax.BodyFilter

        } else {
            try {
                TransformerHandler th
                    = transformerFactory.newTransformerHandler(templates);
                // XML header is output despite xsl:output settings
                th.setResult(new SAXResult(new BodyFilter(result)));
                setContentHandler(th);
            } catch (TransformerConfigurationException e) {
                logger.error ("Cannot create transformer: " + e.getMessage(), e);
                throw (IllegalStateException)
                    new IllegalStateException(e.getMessage()).initCause(e);
View Full Code Here

Examples of de.danet.an.util.sax.BodyFilter

        throws SAXException {
        try {
            TransformerHandler th
                = transformerFactory.newTransformerHandler(templates);
            // XML header is output despite xsl:output settings
            th.setResult(new SAXResult(new BodyFilter(handler)));
            ((SAXEventBuffer)object).emit (th);
        } catch (TransformerConfigurationException e) {
            logger.error ("Cannot create transformer: " + e.getMessage(), e);
            throw (IllegalStateException)
                new IllegalStateException(e.getMessage()).initCause(e);
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.