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, MtomStreamWriter, XMLStreamWriter, org.jvnet.staxex.XMLStreamWriterEx
- Enclosing class:
- MtomCodec
public static class MtomCodec.MtomStreamWriterImpl
- extends XMLStreamWriterFilter
- implements org.jvnet.staxex.XMLStreamWriterEx, MtomStreamWriter, HasEncoding
| 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 |
MtomCodec.MtomStreamWriterImpl
public MtomCodec.MtomStreamWriterImpl(XMLStreamWriter w,
List<MtomCodec.ByteArrayBuffer> mtomAttachments,
String b,
MTOMFeature myMtomFeature)
writeBinary
public void writeBinary(byte[] data,
int start,
int len,
String contentType)
throws XMLStreamException
- Specified by:
writeBinary in interface org.jvnet.staxex.XMLStreamWriterEx
- Throws:
XMLStreamException
writeBinary
public void writeBinary(DataHandler dataHandler)
throws XMLStreamException
- Specified by:
writeBinary in interface org.jvnet.staxex.XMLStreamWriterEx
- Throws:
XMLStreamException
writeBinary
public OutputStream writeBinary(String contentType)
throws XMLStreamException
- Specified by:
writeBinary in interface org.jvnet.staxex.XMLStreamWriterEx
- Throws:
XMLStreamException
writePCDATA
public void writePCDATA(CharSequence data)
throws XMLStreamException
- Specified by:
writePCDATA in interface org.jvnet.staxex.XMLStreamWriterEx
- Throws:
XMLStreamException
getProperty
public Object getProperty(String name)
throws IllegalArgumentException
- Specified by:
getProperty in interface XMLStreamWriter- Overrides:
getProperty in class XMLStreamWriterFilter
- Throws:
IllegalArgumentException
getAttachmentMarshaller
public 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 interface MtomStreamWriter
getMtomAttachments
public List<MtomCodec.ByteArrayBuffer> getMtomAttachments()
getEncoding
public String getEncoding()
- Specified by:
getEncoding in interface HasEncoding
getNamespaceContext
public org.jvnet.staxex.NamespaceContextEx getNamespaceContext()
- Specified by:
getNamespaceContext in interface XMLStreamWriter- Specified by:
getNamespaceContext in interface org.jvnet.staxex.XMLStreamWriterEx- Overrides:
getNamespaceContext in class XMLStreamWriterFilter
Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.