java.lang.Object
com.sun.xml.ws.util.xml.XMLStreamWriterFilter
com.sun.xml.ws.encoding.MtomCodec.MtomStreamWriterImpl
- All Implemented Interfaces:
XMLStreamWriterFactory.RecycleAware
,HasEncoding
,XMLStreamWriter
,org.jvnet.staxex.util.MtomStreamWriter
,org.jvnet.staxex.XMLStreamWriterEx
- Enclosing class:
- MtomCodec
public static class MtomCodec.MtomStreamWriterImpl
extends XMLStreamWriterFilter
implements org.jvnet.staxex.XMLStreamWriterEx, org.jvnet.staxex.util.MtomStreamWriter, HasEncoding
-
Field Summary
Fields inherited from class com.sun.xml.ws.util.xml.XMLStreamWriterFilter
writer
-
Constructor Summary
ConstructorDescriptionMtomStreamWriterImpl
(XMLStreamWriter w, List<MtomCodec.ByteArrayBuffer> mtomAttachments, String b, jakarta.xml.ws.soap.MTOMFeature myMtomFeature) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.xml.bind.attachment.AttachmentMarshaller
JAXBMessage writes envelope directly to the OutputStream(for SJSXP, woodstox).org.jvnet.staxex.NamespaceContextEx
getProperty
(String name) void
writeBinary
(byte[] data, int start, int len, String contentType) void
writeBinary
(jakarta.activation.DataHandler dataHandler) writeBinary
(String contentType) void
writePCDATA
(CharSequence data) Methods inherited from class com.sun.xml.ws.util.xml.XMLStreamWriterFilter
close, flush, getPrefix, onRecycled, setDefaultNamespace, setNamespaceContext, setPrefix, writeAttribute, writeAttribute, writeAttribute, writeCData, writeCharacters, writeCharacters, writeComment, writeDefaultNamespace, writeDTD, writeEmptyElement, writeEmptyElement, writeEmptyElement, writeEndDocument, writeEndElement, writeEntityRef, writeNamespace, writeProcessingInstruction, writeProcessingInstruction, writeStartDocument, writeStartDocument, writeStartDocument, writeStartElement, writeStartElement, writeStartElement
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, getPrefix, setDefaultNamespace, setNamespaceContext, setPrefix, writeAttribute, writeAttribute, writeAttribute, writeCData, writeCharacters, writeCharacters, writeComment, writeDefaultNamespace, writeDTD, writeEmptyElement, writeEmptyElement, writeEmptyElement, writeEndDocument, writeEndElement, writeEntityRef, writeNamespace, writeProcessingInstruction, writeProcessingInstruction, writeStartDocument, writeStartDocument, writeStartDocument, writeStartElement, writeStartElement, writeStartElement
-
Constructor Details
-
MtomStreamWriterImpl
public MtomStreamWriterImpl(XMLStreamWriter w, List<MtomCodec.ByteArrayBuffer> mtomAttachments, String b, jakarta.xml.ws.soap.MTOMFeature myMtomFeature)
-
-
Method Details
-
writeBinary
public void writeBinary(byte[] data, int start, int len, String contentType) throws XMLStreamException - Specified by:
writeBinary
in interfaceorg.jvnet.staxex.XMLStreamWriterEx
- Throws:
XMLStreamException
-
writeBinary
- Specified by:
writeBinary
in interfaceorg.jvnet.staxex.XMLStreamWriterEx
- Throws:
XMLStreamException
-
writeBinary
- Specified by:
writeBinary
in interfaceorg.jvnet.staxex.XMLStreamWriterEx
- Throws:
XMLStreamException
-
writePCDATA
- Specified by:
writePCDATA
in interfaceorg.jvnet.staxex.XMLStreamWriterEx
- Throws:
XMLStreamException
-
getProperty
- Specified by:
getProperty
in interfaceXMLStreamWriter
- Overrides:
getProperty
in classXMLStreamWriterFilter
- Throws:
IllegalArgumentException
-
getAttachmentMarshaller
public jakarta.xml.bind.attachment.AttachmentMarshaller getAttachmentMarshaller()JAXBMessage writes envelope directly to the OutputStream(for SJSXP, woodstox). While writing, it calls the AttachmentMarshaller methods for adding attachments. JAXB writes xop:Include in this case.- Specified by:
getAttachmentMarshaller
in interfaceorg.jvnet.staxex.util.MtomStreamWriter
-
getMtomAttachments
-
getEncoding
- Specified by:
getEncoding
in interfaceHasEncoding
-
getNamespaceContext
public org.jvnet.staxex.NamespaceContextEx getNamespaceContext()- Specified by:
getNamespaceContext
in interfaceXMLStreamWriter
- Specified by:
getNamespaceContext
in interfaceorg.jvnet.staxex.XMLStreamWriterEx
- Overrides:
getNamespaceContext
in classXMLStreamWriterFilter
-