Package org.apache.axiom.util.stax
Class AbstractXMLStreamWriter
- java.lang.Object
-
- org.apache.axiom.util.stax.AbstractXMLStreamWriter
-
- All Implemented Interfaces:
XMLStreamWriter
public abstract class AbstractXMLStreamWriter extends Object implements XMLStreamWriter
Deprecated.This class is no longer maintained.Partial implementation of theXMLStreamWriter
interface. It handles namespace bindings, i.e. the methods related to the namespace context. Subclasses only need to implement write methods that take a prefix together with the namespace URI argument. This class implements allXMLStreamWriter
methods that have a namespace URI argument, but no prefix argument.
-
-
Constructor Summary
Constructors Constructor Description AbstractXMLStreamWriter()
Deprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected abstract void
doWriteAttribute(String localName, String value)
Deprecated.protected abstract void
doWriteAttribute(String prefix, String namespaceURI, String localName, String value)
Deprecated.protected abstract void
doWriteCData(String data)
Deprecated.protected abstract void
doWriteCharacters(char[] text, int start, int len)
Deprecated.protected abstract void
doWriteCharacters(String text)
Deprecated.protected abstract void
doWriteComment(String data)
Deprecated.protected abstract void
doWriteDefaultNamespace(String namespaceURI)
Deprecated.protected abstract void
doWriteDTD(String dtd)
Deprecated.protected abstract void
doWriteEmptyElement(String localName)
Deprecated.protected abstract void
doWriteEmptyElement(String prefix, String localName, String namespaceURI)
Deprecated.protected abstract void
doWriteEndDocument()
Deprecated.protected abstract void
doWriteEndElement()
Deprecated.protected abstract void
doWriteEntityRef(String name)
Deprecated.protected abstract void
doWriteNamespace(String prefix, String namespaceURI)
Deprecated.protected abstract void
doWriteProcessingInstruction(String target)
Deprecated.protected abstract void
doWriteProcessingInstruction(String target, String data)
Deprecated.protected abstract void
doWriteStartDocument()
Deprecated.protected abstract void
doWriteStartDocument(String version)
Deprecated.protected abstract void
doWriteStartDocument(String encoding, String version)
Deprecated.protected abstract void
doWriteStartElement(String localName)
Deprecated.protected abstract void
doWriteStartElement(String prefix, String localName, String namespaceURI)
Deprecated.NamespaceContext
getNamespaceContext()
Deprecated.String
getPrefix(String uri)
Deprecated.void
setDefaultNamespace(String uri)
Deprecated.void
setNamespaceContext(NamespaceContext context)
Deprecated.void
setPrefix(String prefix, String uri)
Deprecated.void
writeAttribute(String localName, String value)
Deprecated.void
writeAttribute(String namespaceURI, String localName, String value)
Deprecated.void
writeAttribute(String prefix, String namespaceURI, String localName, String value)
Deprecated.void
writeCData(String data)
Deprecated.void
writeCharacters(char[] text, int start, int len)
Deprecated.void
writeCharacters(String text)
Deprecated.void
writeComment(String data)
Deprecated.void
writeDefaultNamespace(String namespaceURI)
Deprecated.void
writeDTD(String dtd)
Deprecated.void
writeEmptyElement(String localName)
Deprecated.void
writeEmptyElement(String namespaceURI, String localName)
Deprecated.void
writeEmptyElement(String prefix, String localName, String namespaceURI)
Deprecated.void
writeEndDocument()
Deprecated.void
writeEndElement()
Deprecated.void
writeEntityRef(String name)
Deprecated.void
writeNamespace(String prefix, String namespaceURI)
Deprecated.void
writeProcessingInstruction(String target)
Deprecated.void
writeProcessingInstruction(String target, String data)
Deprecated.void
writeStartDocument()
Deprecated.void
writeStartDocument(String version)
Deprecated.void
writeStartDocument(String encoding, String version)
Deprecated.void
writeStartElement(String localName)
Deprecated.void
writeStartElement(String namespaceURI, String localName)
Deprecated.void
writeStartElement(String prefix, String localName, String namespaceURI)
Deprecated.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.xml.stream.XMLStreamWriter
close, flush, getProperty
-
-
-
-
Method Detail
-
getNamespaceContext
public final NamespaceContext getNamespaceContext()
Deprecated.- Specified by:
getNamespaceContext
in interfaceXMLStreamWriter
-
setNamespaceContext
public final void setNamespaceContext(NamespaceContext context) throws XMLStreamException
Deprecated.- Specified by:
setNamespaceContext
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
getPrefix
public final String getPrefix(String uri) throws XMLStreamException
Deprecated.- Specified by:
getPrefix
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
setDefaultNamespace
public final void setDefaultNamespace(String uri) throws XMLStreamException
Deprecated.- Specified by:
setDefaultNamespace
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
setPrefix
public final void setPrefix(String prefix, String uri) throws XMLStreamException
Deprecated.- Specified by:
setPrefix
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
writeStartDocument
public final void writeStartDocument() throws XMLStreamException
Deprecated.- Specified by:
writeStartDocument
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
doWriteStartDocument
protected abstract void doWriteStartDocument() throws XMLStreamException
Deprecated.- Throws:
XMLStreamException
-
writeStartDocument
public final void writeStartDocument(String encoding, String version) throws XMLStreamException
Deprecated.- Specified by:
writeStartDocument
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
doWriteStartDocument
protected abstract void doWriteStartDocument(String encoding, String version) throws XMLStreamException
Deprecated.- Throws:
XMLStreamException
-
writeStartDocument
public final void writeStartDocument(String version) throws XMLStreamException
Deprecated.- Specified by:
writeStartDocument
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
doWriteStartDocument
protected abstract void doWriteStartDocument(String version) throws XMLStreamException
Deprecated.- Throws:
XMLStreamException
-
writeDTD
public final void writeDTD(String dtd) throws XMLStreamException
Deprecated.- Specified by:
writeDTD
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
doWriteDTD
protected abstract void doWriteDTD(String dtd) throws XMLStreamException
Deprecated.- Throws:
XMLStreamException
-
writeEndDocument
public final void writeEndDocument() throws XMLStreamException
Deprecated.- Specified by:
writeEndDocument
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
doWriteEndDocument
protected abstract void doWriteEndDocument() throws XMLStreamException
Deprecated.- Throws:
XMLStreamException
-
writeStartElement
public final void writeStartElement(String prefix, String localName, String namespaceURI) throws XMLStreamException
Deprecated.- Specified by:
writeStartElement
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
writeStartElement
public final void writeStartElement(String namespaceURI, String localName) throws XMLStreamException
Deprecated.- Specified by:
writeStartElement
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
doWriteStartElement
protected abstract void doWriteStartElement(String prefix, String localName, String namespaceURI) throws XMLStreamException
Deprecated.- Throws:
XMLStreamException
-
writeStartElement
public final void writeStartElement(String localName) throws XMLStreamException
Deprecated.- Specified by:
writeStartElement
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
doWriteStartElement
protected abstract void doWriteStartElement(String localName) throws XMLStreamException
Deprecated.- Throws:
XMLStreamException
-
writeEndElement
public final void writeEndElement() throws XMLStreamException
Deprecated.- Specified by:
writeEndElement
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
doWriteEndElement
protected abstract void doWriteEndElement() throws XMLStreamException
Deprecated.- Throws:
XMLStreamException
-
writeEmptyElement
public final void writeEmptyElement(String prefix, String localName, String namespaceURI) throws XMLStreamException
Deprecated.- Specified by:
writeEmptyElement
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
writeEmptyElement
public final void writeEmptyElement(String namespaceURI, String localName) throws XMLStreamException
Deprecated.- Specified by:
writeEmptyElement
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
doWriteEmptyElement
protected abstract void doWriteEmptyElement(String prefix, String localName, String namespaceURI) throws XMLStreamException
Deprecated.- Throws:
XMLStreamException
-
writeEmptyElement
public final void writeEmptyElement(String localName) throws XMLStreamException
Deprecated.- Specified by:
writeEmptyElement
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
doWriteEmptyElement
protected abstract void doWriteEmptyElement(String localName) throws XMLStreamException
Deprecated.- Throws:
XMLStreamException
-
writeAttribute
public final void writeAttribute(String prefix, String namespaceURI, String localName, String value) throws XMLStreamException
Deprecated.- Specified by:
writeAttribute
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
writeAttribute
public final void writeAttribute(String namespaceURI, String localName, String value) throws XMLStreamException
Deprecated.- Specified by:
writeAttribute
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
doWriteAttribute
protected abstract void doWriteAttribute(String prefix, String namespaceURI, String localName, String value) throws XMLStreamException
Deprecated.- Throws:
XMLStreamException
-
writeAttribute
public final void writeAttribute(String localName, String value) throws XMLStreamException
Deprecated.- Specified by:
writeAttribute
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
doWriteAttribute
protected abstract void doWriteAttribute(String localName, String value) throws XMLStreamException
Deprecated.- Throws:
XMLStreamException
-
writeNamespace
public final void writeNamespace(String prefix, String namespaceURI) throws XMLStreamException
Deprecated.- Specified by:
writeNamespace
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
doWriteNamespace
protected abstract void doWriteNamespace(String prefix, String namespaceURI) throws XMLStreamException
Deprecated.- Throws:
XMLStreamException
-
writeDefaultNamespace
public final void writeDefaultNamespace(String namespaceURI) throws XMLStreamException
Deprecated.- Specified by:
writeDefaultNamespace
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
doWriteDefaultNamespace
protected abstract void doWriteDefaultNamespace(String namespaceURI) throws XMLStreamException
Deprecated.- Throws:
XMLStreamException
-
writeCharacters
public final void writeCharacters(char[] text, int start, int len) throws XMLStreamException
Deprecated.- Specified by:
writeCharacters
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
doWriteCharacters
protected abstract void doWriteCharacters(char[] text, int start, int len) throws XMLStreamException
Deprecated.- Throws:
XMLStreamException
-
writeCharacters
public final void writeCharacters(String text) throws XMLStreamException
Deprecated.- Specified by:
writeCharacters
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
doWriteCharacters
protected abstract void doWriteCharacters(String text) throws XMLStreamException
Deprecated.- Throws:
XMLStreamException
-
writeCData
public final void writeCData(String data) throws XMLStreamException
Deprecated.- Specified by:
writeCData
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
doWriteCData
protected abstract void doWriteCData(String data) throws XMLStreamException
Deprecated.- Throws:
XMLStreamException
-
writeComment
public final void writeComment(String data) throws XMLStreamException
Deprecated.- Specified by:
writeComment
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
doWriteComment
protected abstract void doWriteComment(String data) throws XMLStreamException
Deprecated.- Throws:
XMLStreamException
-
writeEntityRef
public final void writeEntityRef(String name) throws XMLStreamException
Deprecated.- Specified by:
writeEntityRef
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
doWriteEntityRef
protected abstract void doWriteEntityRef(String name) throws XMLStreamException
Deprecated.- Throws:
XMLStreamException
-
writeProcessingInstruction
public final void writeProcessingInstruction(String target, String data) throws XMLStreamException
Deprecated.- Specified by:
writeProcessingInstruction
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
doWriteProcessingInstruction
protected abstract void doWriteProcessingInstruction(String target, String data) throws XMLStreamException
Deprecated.- Throws:
XMLStreamException
-
writeProcessingInstruction
public final void writeProcessingInstruction(String target) throws XMLStreamException
Deprecated.- Specified by:
writeProcessingInstruction
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
doWriteProcessingInstruction
protected abstract void doWriteProcessingInstruction(String target) throws XMLStreamException
Deprecated.- Throws:
XMLStreamException
-
-