public class XmlContentHandlerFactory extends Object
ContentHandler
instances streaming to XML.
This implementation tries to use a SAXTransformerFactory
to instantiate
a content handler that supports pretty printing the XML output. If the underlying
implementation does support this (i.e. SAXTransformerFactory.FEATURE
is
not supported) then ToXmlContentHandler
is used as a fallback, which does not
do pretty printing.
Constructor and Description |
---|
XmlContentHandlerFactory() |
Modifier and Type | Method and Description |
---|---|
static ContentHandler |
newXmlContentHandler(OutputStream out,
boolean prettyPrint) |
public static ContentHandler newXmlContentHandler(OutputStream out, boolean prettyPrint)
Copyright © 2003–2020 Magnolia International Ltd.. All rights reserved.