public static class SCXMLWriter.Configuration extends Object
Configuration for the SCXMLWriter. The configuration properties necessary for the following are
covered:
XMLOutputFactory configuration properties such as factoryId or any propertiesXMLStreamWriter configuration properties such as target Writer or OutputStream
and the encoding| Constructor and Description |
|---|
SCXMLWriter.Configuration()
Default constructor.
|
SCXMLWriter.Configuration(String factoryId,
ClassLoader factoryClassLoader,
Map<String,Object> properties,
String encoding,
boolean usePrettyPrint,
boolean closeUnderlyingWhenDone)
All-purpose constructor.
|
public SCXMLWriter.Configuration()
public SCXMLWriter.Configuration(String factoryId, ClassLoader factoryClassLoader, Map<String,Object> properties, String encoding, boolean usePrettyPrint, boolean closeUnderlyingWhenDone)
null (booleans should default
to false). At the moment, the factoryId and factoryClassLoader
arguments are effectively ignored due to a bug in the underlying StAX XMLOutputFactory API.factoryId - The factoryId to use.factoryClassLoader - The ClassLoader to use for the XMLOutputFactory instance to
create.properties - The map of properties (keys are property name strings, values are object property values)
for the XMLOutputFactory.encoding - The encoding to use for the XMLStreamWriterusePrettyPrint - Whether to make the output human readable as far as possible. Since StAX does not
provide a portable way to do this in JDK 1.6, choosing the pretty print option
is currently not very efficient.closeUnderlyingWhenDone - Whether to close the underlying stream or writer passed by the caller.Copyright © 2005–2015 The Apache Software Foundation. All rights reserved.