Package javanet.staxutils
Class StaxUtilsXMLOutputFactory
java.lang.Object
javax.xml.stream.XMLOutputFactory
javanet.staxutils.helpers.FilterXMLOutputFactory
javanet.staxutils.StaxUtilsXMLOutputFactory
An output factory that optionally wraps a filter around each writer. The
property
INDENTING controls indentation of output.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringA String property whose value indents one level.static final StringA Boolean property controlling whether to indent output.static final StringA String property whose value introduces a new line for indentation.Fields inherited from class javanet.staxutils.helpers.FilterXMLOutputFactory
sourceFields inherited from class javax.xml.stream.XMLOutputFactory
IS_REPAIRING_NAMESPACES -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected XMLEventWriterfilter(XMLEventWriter writer) Transform the given writer.protected XMLStreamWriterfilter(XMLStreamWriter writer) getProperty(String name) Delegates to source.inthashCode()booleanisPropertySupported(String name) Delegates to source.voidsetProperty(String name, Object value) Delegates to source.Methods inherited from class javanet.staxutils.helpers.FilterXMLOutputFactory
createXMLEventWriter, createXMLEventWriter, createXMLEventWriter, createXMLEventWriter, createXMLStreamWriter, createXMLStreamWriter, createXMLStreamWriter, createXMLStreamWriter, equals, hashCodeMethods inherited from class javax.xml.stream.XMLOutputFactory
newDefaultFactory, newFactory, newFactory, newInstance, newInstance
-
Field Details
-
INDENTING
A Boolean property controlling whether to indent output. If true, output is indented byIndentingXMLEventWriterorIndentingXMLStreamWriter. The default is false.- See Also:
-
INDENT
A String property whose value indents one level. The default isIndentation.DEFAULT_INDENT.- See Also:
-
NEW_LINE
A String property whose value introduces a new line for indentation. The default isIndentation.NORMAL_END_OF_LINE.- See Also:
-
-
Constructor Details
-
StaxUtilsXMLOutputFactory
public StaxUtilsXMLOutputFactory() -
StaxUtilsXMLOutputFactory
-
-
Method Details
-
filter
Description copied from class:FilterXMLOutputFactoryTransform the given writer.- Specified by:
filterin classFilterXMLOutputFactory
-
filter
- Specified by:
filterin classFilterXMLOutputFactory
-
isPropertySupported
Description copied from class:FilterXMLOutputFactoryDelegates to source.- Overrides:
isPropertySupportedin classFilterXMLOutputFactory
-
setProperty
Description copied from class:FilterXMLOutputFactoryDelegates to source.- Overrides:
setPropertyin classFilterXMLOutputFactory- Throws:
IllegalArgumentException
-
getProperty
Description copied from class:FilterXMLOutputFactoryDelegates to source.- Overrides:
getPropertyin classFilterXMLOutputFactory- Throws:
IllegalArgumentException
-
hashCode
public int hashCode()- Overrides:
hashCodein classFilterXMLOutputFactory
-
equals
- Overrides:
equalsin classFilterXMLOutputFactory
-