Package org.apache.axis2.datasource.jaxb
Class XMLStreamWriterFilterBase
java.lang.Object
org.apache.axiom.om.impl.MTOMXMLStreamWriter
org.apache.axis2.datasource.jaxb.XMLStreamWriterFilterBase
- All Implemented Interfaces:
XMLStreamWriter
- Direct Known Subclasses:
XMLStreamWriterRemoveIllegalChars
public abstract class XMLStreamWriterFilterBase
extends org.apache.axiom.om.impl.MTOMXMLStreamWriter
The base class for classes that are MTOMXMLStreamWriter filters.
Each of the XMLStreamWriter events is intercepted and passed to the delegate XMLStreamWriter
Character data is sent to the xmlData abstract method. Derived classes may
log or change the xml data.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionXMLStreamWriterFilterBase(org.apache.axiom.om.impl.MTOMXMLStreamWriter delegate) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidflush()org.apache.axiom.om.OMOutputFormatgetProperty(String name) booleanprepareBlob(org.apache.axiom.blob.Blob blob) voidvoidsetNamespaceContext(NamespaceContext context) voidvoidwriteAttribute(String localName, String value) voidwriteAttribute(String namespaceURI, String localName, String value) voidwriteAttribute(String prefix, String namespaceURI, String localName, String value) voidwriteCData(String data) voidwriteCharacters(char[] text, int start, int len) voidwriteCharacters(String text) voidwriteComment(String data) voidwriteDefaultNamespace(String namespaceURI) voidvoidwriteEmptyElement(String localName) voidwriteEmptyElement(String namespaceURI, String localName) voidwriteEmptyElement(String prefix, String localName, String namespaceURI) voidvoidvoidwriteEntityRef(String name) voidwriteNamespace(String prefix, String namespaceURI) voidwriteProcessingInstruction(String target) voidwriteProcessingInstruction(String target, String data) voidvoidwriteStartDocument(String version) voidwriteStartDocument(String encoding, String version) voidwriteStartElement(String localName) voidwriteStartElement(String namespaceURI, String localName) voidwriteStartElement(String prefix, String localName, String namespaceURI) protected abstract StringDerived classes extend the method.
-
Constructor Details
-
XMLStreamWriterFilterBase
public XMLStreamWriterFilterBase(org.apache.axiom.om.impl.MTOMXMLStreamWriter delegate)
-
-
Method Details
-
close
- Throws:
XMLStreamException
-
flush
- Throws:
XMLStreamException
-
getNamespaceContext
-
getPrefix
- Throws:
XMLStreamException
-
getProperty
- Throws:
IllegalArgumentException
-
setDefaultNamespace
- Throws:
XMLStreamException
-
setNamespaceContext
- Throws:
XMLStreamException
-
setPrefix
- Throws:
XMLStreamException
-
writeAttribute
public void writeAttribute(String prefix, String namespaceURI, String localName, String value) throws XMLStreamException - Throws:
XMLStreamException
-
writeAttribute
public void writeAttribute(String namespaceURI, String localName, String value) throws XMLStreamException - Throws:
XMLStreamException
-
writeAttribute
- Throws:
XMLStreamException
-
writeCData
- Throws:
XMLStreamException
-
writeCharacters
- Throws:
XMLStreamException
-
writeCharacters
- Throws:
XMLStreamException
-
writeComment
- Throws:
XMLStreamException
-
writeDTD
- Throws:
XMLStreamException
-
writeDefaultNamespace
- Throws:
XMLStreamException
-
writeEmptyElement
public void writeEmptyElement(String prefix, String localName, String namespaceURI) throws XMLStreamException - Throws:
XMLStreamException
-
writeEmptyElement
- Throws:
XMLStreamException
-
writeEmptyElement
- Throws:
XMLStreamException
-
writeEndDocument
- Throws:
XMLStreamException
-
writeEndElement
- Throws:
XMLStreamException
-
writeEntityRef
- Throws:
XMLStreamException
-
writeNamespace
- Throws:
XMLStreamException
-
writeProcessingInstruction
- Throws:
XMLStreamException
-
writeProcessingInstruction
- Throws:
XMLStreamException
-
writeStartDocument
- Throws:
XMLStreamException
-
writeStartDocument
- Throws:
XMLStreamException
-
writeStartDocument
- Throws:
XMLStreamException
-
writeStartElement
public void writeStartElement(String prefix, String localName, String namespaceURI) throws XMLStreamException - Throws:
XMLStreamException
-
writeStartElement
- Throws:
XMLStreamException
-
writeStartElement
- Throws:
XMLStreamException
-
isOptimized
public boolean isOptimized()- Specified by:
isOptimizedin classorg.apache.axiom.om.impl.MTOMXMLStreamWriter
-
prepareBlob
- Specified by:
prepareBlobin classorg.apache.axiom.om.impl.MTOMXMLStreamWriter
-
getCharSetEncoding
- Specified by:
getCharSetEncodingin classorg.apache.axiom.om.impl.MTOMXMLStreamWriter
-
getOutputFormat
public org.apache.axiom.om.OMOutputFormat getOutputFormat()- Specified by:
getOutputFormatin classorg.apache.axiom.om.impl.MTOMXMLStreamWriter
-
getOutputStream
- Specified by:
getOutputStreamin classorg.apache.axiom.om.impl.MTOMXMLStreamWriter- Throws:
XMLStreamException
-
xmlData
Derived classes extend the method. A derived class may log or modify the xml data- Parameters:
value-- Returns:
- value
-