Package com.sun.xml.ws.encoding
Class MtomCodec.MtomStreamWriterImpl
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
ConstructorsConstructorDescriptionMtomStreamWriterImpl(XMLStreamWriter w, List<MtomCodec.ByteArrayBuffer> mtomAttachments, String b, javax.xml.ws.soap.MTOMFeature myMtomFeature) -
Method Summary
Modifier and TypeMethodDescriptionjavax.xml.bind.attachment.AttachmentMarshallerJAXBMessage writes envelope directly to the OutputStream(for SJSXP, woodstox).org.jvnet.staxex.NamespaceContextExgetProperty(String name) voidwriteBinary(byte[] data, int start, int len, String contentType) writeBinary(String contentType) voidwriteBinary(javax.activation.DataHandler dataHandler) voidwritePCDATA(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, writeStartElementMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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, javax.xml.ws.soap.MTOMFeature myMtomFeature)
-
-
Method Details
-
writeBinary
public void writeBinary(byte[] data, int start, int len, String contentType) throws XMLStreamException - Specified by:
writeBinaryin interfaceorg.jvnet.staxex.XMLStreamWriterEx- Throws:
XMLStreamException
-
writeBinary
- Specified by:
writeBinaryin interfaceorg.jvnet.staxex.XMLStreamWriterEx- Throws:
XMLStreamException
-
writeBinary
- Specified by:
writeBinaryin interfaceorg.jvnet.staxex.XMLStreamWriterEx- Throws:
XMLStreamException
-
writePCDATA
- Specified by:
writePCDATAin interfaceorg.jvnet.staxex.XMLStreamWriterEx- Throws:
XMLStreamException
-
getProperty
- Specified by:
getPropertyin interfaceXMLStreamWriter- Overrides:
getPropertyin classXMLStreamWriterFilter- Throws:
IllegalArgumentException
-
getAttachmentMarshaller
public javax.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:
getAttachmentMarshallerin interfaceorg.jvnet.staxex.util.MtomStreamWriter
-
getMtomAttachments
-
getEncoding
- Specified by:
getEncodingin interfaceHasEncoding
-
getNamespaceContext
public org.jvnet.staxex.NamespaceContextEx getNamespaceContext()- Specified by:
getNamespaceContextin interfaceXMLStreamWriter- Specified by:
getNamespaceContextin interfaceorg.jvnet.staxex.XMLStreamWriterEx- Overrides:
getNamespaceContextin classXMLStreamWriterFilter
-