Package javanet.staxutils.helpers
Class FilterXMLOutputFactory
- java.lang.Object
-
- javax.xml.stream.XMLOutputFactory
-
- javanet.staxutils.helpers.FilterXMLOutputFactory
-
- Direct Known Subclasses:
StaxUtilsXMLOutputFactory
public abstract class FilterXMLOutputFactory extends XMLOutputFactory
An output factory that transforms each writer from a contained factory. Subclasses are required to implement the transformation.
-
-
Field Summary
Fields Modifier and Type Field Description protected XMLOutputFactorysource-
Fields inherited from class javax.xml.stream.XMLOutputFactory
IS_REPAIRING_NAMESPACES
-
-
Constructor Summary
Constructors Constructor Description FilterXMLOutputFactory()FilterXMLOutputFactory(XMLOutputFactory source)
-
Method Summary
-
Methods inherited from class javax.xml.stream.XMLOutputFactory
newDefaultFactory, newFactory, newFactory, newInstance, newInstance
-
-
-
-
Field Detail
-
source
protected XMLOutputFactory source
-
-
Constructor Detail
-
FilterXMLOutputFactory
public FilterXMLOutputFactory()
-
FilterXMLOutputFactory
public FilterXMLOutputFactory(XMLOutputFactory source)
-
-
Method Detail
-
filter
protected abstract XMLEventWriter filter(XMLEventWriter writer)
Transform the given writer.
-
filter
protected abstract XMLStreamWriter filter(XMLStreamWriter writer)
-
isPropertySupported
public boolean isPropertySupported(String name)
Delegates to source.- Specified by:
isPropertySupportedin classXMLOutputFactory
-
setProperty
public void setProperty(String name, Object value) throws IllegalArgumentException
Delegates to source.- Specified by:
setPropertyin classXMLOutputFactory- Throws:
IllegalArgumentException
-
getProperty
public Object getProperty(String name) throws IllegalArgumentException
Delegates to source.- Specified by:
getPropertyin classXMLOutputFactory- Throws:
IllegalArgumentException
-
createXMLEventWriter
public XMLEventWriter createXMLEventWriter(Result result) throws XMLStreamException
- Specified by:
createXMLEventWriterin classXMLOutputFactory- Throws:
XMLStreamException
-
createXMLEventWriter
public XMLEventWriter createXMLEventWriter(Writer writer) throws XMLStreamException
- Specified by:
createXMLEventWriterin classXMLOutputFactory- Throws:
XMLStreamException
-
createXMLEventWriter
public XMLEventWriter createXMLEventWriter(OutputStream stream) throws XMLStreamException
- Specified by:
createXMLEventWriterin classXMLOutputFactory- Throws:
XMLStreamException
-
createXMLEventWriter
public XMLEventWriter createXMLEventWriter(OutputStream stream, String encoding) throws XMLStreamException
- Specified by:
createXMLEventWriterin classXMLOutputFactory- Throws:
XMLStreamException
-
createXMLStreamWriter
public XMLStreamWriter createXMLStreamWriter(Result result) throws XMLStreamException
- Specified by:
createXMLStreamWriterin classXMLOutputFactory- Throws:
XMLStreamException
-
createXMLStreamWriter
public XMLStreamWriter createXMLStreamWriter(Writer writer) throws XMLStreamException
- Specified by:
createXMLStreamWriterin classXMLOutputFactory- Throws:
XMLStreamException
-
createXMLStreamWriter
public XMLStreamWriter createXMLStreamWriter(OutputStream stream) throws XMLStreamException
- Specified by:
createXMLStreamWriterin classXMLOutputFactory- Throws:
XMLStreamException
-
createXMLStreamWriter
public XMLStreamWriter createXMLStreamWriter(OutputStream stream, String encoding) throws XMLStreamException
- Specified by:
createXMLStreamWriterin classXMLOutputFactory- Throws:
XMLStreamException
-
hashCode
protected static int hashCode(Object o)
-
-