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.| Constructor and Description |
|---|
XOPDecodingStreamWriter(XMLStreamWriter parent,
MimePartProvider mimePartProvider)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
writeAttribute(String localName,
String value) |
void |
writeAttribute(String namespaceURI,
String localName,
String value) |
void |
writeAttribute(String prefix,
String namespaceURI,
String localName,
String value) |
void |
writeEndElement() |
void |
writeStartElement(String namespaceURI,
String localName) |
void |
writeStartElement(String prefix,
String localName,
String namespaceURI) |
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, writeStartElementpublic XOPDecodingStreamWriter(XMLStreamWriter parent, MimePartProvider mimePartProvider)
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 wrapperpublic void writeStartElement(String prefix, String localName, String namespaceURI) throws XMLStreamException
writeStartElement in interface XMLStreamWriterwriteStartElement in class XMLStreamWriterWrapperXMLStreamExceptionpublic void writeStartElement(String namespaceURI, String localName) throws XMLStreamException
writeStartElement in interface XMLStreamWriterwriteStartElement in class XMLStreamWriterWrapperXMLStreamExceptionpublic void writeAttribute(String prefix, String namespaceURI, String localName, String value) throws XMLStreamException
writeAttribute in interface XMLStreamWriterwriteAttribute in class XMLStreamWriterWrapperXMLStreamExceptionpublic void writeAttribute(String namespaceURI, String localName, String value) throws XMLStreamException
writeAttribute in interface XMLStreamWriterwriteAttribute in class XMLStreamWriterWrapperXMLStreamExceptionpublic void writeAttribute(String localName, String value) throws XMLStreamException
writeAttribute in interface XMLStreamWriterwriteAttribute in class XMLStreamWriterWrapperXMLStreamExceptionpublic void writeEndElement()
throws XMLStreamException
writeEndElement in interface XMLStreamWriterwriteEndElement in class XMLStreamWriterWrapperXMLStreamExceptionCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.