public final class SerializerFactory extends Object
The standard property keys supported are: "method", "version", "encoding", "omit-xml-declaration", "standalone", doctype-public", "doctype-system", "cdata-section-elements", "indent", "media-type". These property keys and their values are described in the XSLT recommendation, see XSLT 1.0 recommendation
The value of the "cdata-section-elements" property key is a whitespace separated list of elements. If the element is in a namespace then value is passed in this format: {uri}localName
The non-standard property keys supported are defined in OutputPropertiesFactory
.
OutputPropertiesFactory
,
Method
,
Serializer
Modifier and Type | Method and Description |
---|---|
static Serializer |
getSerializer(Properties format)
Returns a serializer for the specified output method.
|
public static Serializer getSerializer(Properties format)
Method
.format
- The output format, minimally the "method" property must be set.IllegalArgumentException
- if method is
null or an appropriate serializer can't be foundException
- if the class for the serializer is found but does not
implement ContentHandler.WrappedRuntimeException
- if an exception is thrown while trying to find serializerCopyright © 2018 JBoss by Red Hat. All rights reserved.