org.apache.axiom.util.stax.xop
Class XOPDecodingStreamWriter
java.lang.Object
org.apache.axiom.util.stax.wrapper.XMLStreamWriterWrapper
org.apache.axiom.util.stax.xop.XOPDecodingStreamWriter
- All Implemented Interfaces:
- XMLStreamWriter
public class XOPDecodingStreamWriter
- extends XMLStreamWriterWrapper
XMLStreamWriter
wrapper that decodes XOP. It assumes that the underlying stream
implements the DataHandlerWriter
extension and translates calls that write
xop:Include elements into calls to the appropriate methods defined by
DataHandlerWriter
.
Methods inherited from class org.apache.axiom.util.stax.wrapper.XMLStreamWriterWrapper |
close, flush, getNamespaceContext, getPrefix, getProperty, setDefaultNamespace, setNamespaceContext, setPrefix, writeCData, writeCharacters, writeCharacters, writeComment, writeDefaultNamespace, writeDTD, writeEmptyElement, writeEmptyElement, writeEmptyElement, writeEndDocument, writeEntityRef, writeNamespace, writeProcessingInstruction, writeProcessingInstruction, writeStartDocument, writeStartDocument, writeStartDocument, writeStartElement |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XOPDecodingStreamWriter
public XOPDecodingStreamWriter(XMLStreamWriter parent,
MimePartProvider mimePartProvider)
- Constructor.
- Parameters:
parent
- the XMLStreamWriter
to write the decoded stream to; the instance must
implement the DataHandlerWriter
extensionmimePartProvider
- an implementation of the MimePartProvider
interface that will be used to
load the DataHandler
objects for MIME parts referenced by
xop:Include element information items written to this wrapper
writeStartElement
public void writeStartElement(String prefix,
String localName,
String namespaceURI)
throws XMLStreamException
- Specified by:
writeStartElement
in interface XMLStreamWriter
- Overrides:
writeStartElement
in class XMLStreamWriterWrapper
- Throws:
XMLStreamException
writeStartElement
public void writeStartElement(String namespaceURI,
String localName)
throws XMLStreamException
- Specified by:
writeStartElement
in interface XMLStreamWriter
- Overrides:
writeStartElement
in class XMLStreamWriterWrapper
- Throws:
XMLStreamException
writeAttribute
public void writeAttribute(String prefix,
String namespaceURI,
String localName,
String value)
throws XMLStreamException
- Specified by:
writeAttribute
in interface XMLStreamWriter
- Overrides:
writeAttribute
in class XMLStreamWriterWrapper
- Throws:
XMLStreamException
writeAttribute
public void writeAttribute(String namespaceURI,
String localName,
String value)
throws XMLStreamException
- Specified by:
writeAttribute
in interface XMLStreamWriter
- Overrides:
writeAttribute
in class XMLStreamWriterWrapper
- Throws:
XMLStreamException
writeAttribute
public void writeAttribute(String localName,
String value)
throws XMLStreamException
- Specified by:
writeAttribute
in interface XMLStreamWriter
- Overrides:
writeAttribute
in class XMLStreamWriterWrapper
- Throws:
XMLStreamException
writeEndElement
public void writeEndElement()
throws XMLStreamException
- Specified by:
writeEndElement
in interface XMLStreamWriter
- Overrides:
writeEndElement
in class XMLStreamWriterWrapper
- Throws:
XMLStreamException
Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.