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 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:
XMLStreamWriterRemoveIllegalChars
-
-
Constructor Summary
Constructors Constructor Description XMLStreamWriterFilterBase(MTOMXMLStreamWriter delegate)
-
Method Summary
-
-
-
Constructor Detail
-
XMLStreamWriterFilterBase
public XMLStreamWriterFilterBase(MTOMXMLStreamWriter delegate)
-
-
Method Detail
-
close
public void close() throws XMLStreamException
- Throws:
XMLStreamException
-
flush
public void flush() throws XMLStreamException
- Throws:
XMLStreamException
-
getNamespaceContext
public NamespaceContext getNamespaceContext()
-
getPrefix
public String getPrefix(String uri) throws XMLStreamException
- Throws:
XMLStreamException
-
getProperty
public Object getProperty(String name) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
setDefaultNamespace
public void setDefaultNamespace(String uri) throws XMLStreamException
- Throws:
XMLStreamException
-
setNamespaceContext
public void setNamespaceContext(NamespaceContext context) throws XMLStreamException
- Throws:
XMLStreamException
-
setPrefix
public void setPrefix(String prefix, String uri) throws XMLStreamException
- 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
public void writeAttribute(String localName, String value) throws XMLStreamException
- Throws:
XMLStreamException
-
writeCData
public void writeCData(String data) throws XMLStreamException
- Throws:
XMLStreamException
-
writeCharacters
public void writeCharacters(char[] text, int start, int len) throws XMLStreamException
- Throws:
XMLStreamException
-
writeCharacters
public void writeCharacters(String text) throws XMLStreamException
- Throws:
XMLStreamException
-
writeComment
public void writeComment(String data) throws XMLStreamException
- Throws:
XMLStreamException
-
writeDTD
public void writeDTD(String dtd) throws XMLStreamException
- Throws:
XMLStreamException
-
writeDefaultNamespace
public void writeDefaultNamespace(String namespaceURI) throws XMLStreamException
- Throws:
XMLStreamException
-
writeEmptyElement
public void writeEmptyElement(String prefix, String localName, String namespaceURI) throws XMLStreamException
- Throws:
XMLStreamException
-
writeEmptyElement
public void writeEmptyElement(String namespaceURI, String localName) throws XMLStreamException
- Throws:
XMLStreamException
-
writeEmptyElement
public void writeEmptyElement(String localName) throws XMLStreamException
- Throws:
XMLStreamException
-
writeEndDocument
public void writeEndDocument() throws XMLStreamException
- Throws:
XMLStreamException
-
writeEndElement
public void writeEndElement() throws XMLStreamException
- Throws:
XMLStreamException
-
writeEntityRef
public void writeEntityRef(String name) throws XMLStreamException
- Throws:
XMLStreamException
-
writeNamespace
public void writeNamespace(String prefix, String namespaceURI) throws XMLStreamException
- Throws:
XMLStreamException
-
writeProcessingInstruction
public void writeProcessingInstruction(String target, String data) throws XMLStreamException
- Throws:
XMLStreamException
-
writeProcessingInstruction
public void writeProcessingInstruction(String target) throws XMLStreamException
- Throws:
XMLStreamException
-
writeStartDocument
public void writeStartDocument() throws XMLStreamException
- Throws:
XMLStreamException
-
writeStartDocument
public void writeStartDocument(String encoding, String version) throws XMLStreamException
- Throws:
XMLStreamException
-
writeStartDocument
public void writeStartDocument(String version) throws XMLStreamException
- Throws:
XMLStreamException
-
writeStartElement
public void writeStartElement(String prefix, String localName, String namespaceURI) throws XMLStreamException
- Throws:
XMLStreamException
-
writeStartElement
public void writeStartElement(String namespaceURI, String localName) throws XMLStreamException
- Throws:
XMLStreamException
-
writeStartElement
public void writeStartElement(String localName) throws XMLStreamException
- Throws:
XMLStreamException
-
isOptimized
public boolean isOptimized()
- Specified by:
isOptimized
in classMTOMXMLStreamWriter
-
prepareDataHandler
public String prepareDataHandler(DataHandler dataHandler)
- Specified by:
prepareDataHandler
in classMTOMXMLStreamWriter
-
getCharSetEncoding
public String getCharSetEncoding()
- Specified by:
getCharSetEncoding
in classMTOMXMLStreamWriter
-
getOutputFormat
public OMOutputFormat getOutputFormat()
- Specified by:
getOutputFormat
in classMTOMXMLStreamWriter
-
getOutputStream
public OutputStream getOutputStream() throws XMLStreamException
- Specified by:
getOutputStream
in classMTOMXMLStreamWriter
- Throws:
XMLStreamException
-
-