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
Constructors Constructor Description MtomStreamWriterImpl(XMLStreamWriter w, List<MtomCodec.ByteArrayBuffer> mtomAttachments, String b, jakarta.xml.ws.soap.MTOMFeature myMtomFeature)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.xml.bind.attachment.AttachmentMarshallergetAttachmentMarshaller()JAXBMessage writes envelope directly to the OutputStream(for SJSXP, woodstox).StringgetEncoding()List<MtomCodec.ByteArrayBuffer>getMtomAttachments()org.jvnet.staxex.NamespaceContextExgetNamespaceContext()ObjectgetProperty(String name)voidwriteBinary(byte[] data, int start, int len, String contentType)voidwriteBinary(jakarta.activation.DataHandler dataHandler)OutputStreamwriteBinary(String contentType)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, 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 Detail
-
MtomStreamWriterImpl
public MtomStreamWriterImpl(XMLStreamWriter w, List<MtomCodec.ByteArrayBuffer> mtomAttachments, String b, jakarta.xml.ws.soap.MTOMFeature myMtomFeature)
-
-
Method Detail
-
writeBinary
public void writeBinary(byte[] data, int start, int len, String contentType) throws XMLStreamException- Specified by:
writeBinaryin interfaceorg.jvnet.staxex.XMLStreamWriterEx- Throws:
XMLStreamException
-
writeBinary
public void writeBinary(jakarta.activation.DataHandler dataHandler) throws XMLStreamException- Specified by:
writeBinaryin interfaceorg.jvnet.staxex.XMLStreamWriterEx- Throws:
XMLStreamException
-
writeBinary
public OutputStream writeBinary(String contentType) throws XMLStreamException
- Specified by:
writeBinaryin interfaceorg.jvnet.staxex.XMLStreamWriterEx- Throws:
XMLStreamException
-
writePCDATA
public void writePCDATA(CharSequence data) throws XMLStreamException
- Specified by:
writePCDATAin interfaceorg.jvnet.staxex.XMLStreamWriterEx- Throws:
XMLStreamException
-
getProperty
public Object getProperty(String name) throws IllegalArgumentException
- Specified by:
getPropertyin interfaceXMLStreamWriter- Overrides:
getPropertyin 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:
getAttachmentMarshallerin interfaceorg.jvnet.staxex.util.MtomStreamWriter
-
getMtomAttachments
public List<MtomCodec.ByteArrayBuffer> getMtomAttachments()
-
getEncoding
public String 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
-
-