com.sun.xml.ws.encoding
Class MtomCodec.MtomStreamWriterImpl

java.lang.Object
  extended by com.sun.xml.ws.util.xml.XMLStreamWriterFilter
      extended by com.sun.xml.ws.encoding.MtomCodec.MtomStreamWriterImpl
All Implemented Interfaces:
XMLStreamWriterFactory.RecycleAware, HasEncoding, MtomStreamWriter, javax.xml.stream.XMLStreamWriter, org.jvnet.staxex.XMLStreamWriterEx
Enclosing class:
MtomCodec

public static class MtomCodec.MtomStreamWriterImpl
extends XMLStreamWriterFilter
implements org.jvnet.staxex.XMLStreamWriterEx, MtomStreamWriter, HasEncoding


Field Summary
 
Fields inherited from class com.sun.xml.ws.util.xml.XMLStreamWriterFilter
writer
 
Constructor Summary
MtomCodec.MtomStreamWriterImpl(javax.xml.stream.XMLStreamWriter w, List<MtomCodec.ByteArrayBuffer> mtomAttachments, String b, MTOMFeature myMtomFeature)
           
 
Method Summary
 AttachmentMarshaller getAttachmentMarshaller()
          JAXBMessage writes envelope directly to the OutputStream(for SJSXP, woodstox).
 String getEncoding()
           
 List<MtomCodec.ByteArrayBuffer> getMtomAttachments()
           
 org.jvnet.staxex.NamespaceContextEx getNamespaceContext()
           
 Object getProperty(String name)
           
 void writeBinary(byte[] data, int start, int len, String contentType)
           
 void writeBinary(javax.activation.DataHandler dataHandler)
           
 OutputStream 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 Detail

MtomCodec.MtomStreamWriterImpl

public MtomCodec.MtomStreamWriterImpl(javax.xml.stream.XMLStreamWriter w,
                                      List<MtomCodec.ByteArrayBuffer> mtomAttachments,
                                      String b,
                                      MTOMFeature myMtomFeature)
Method Detail

writeBinary

public void writeBinary(byte[] data,
                        int start,
                        int len,
                        String contentType)
                 throws javax.xml.stream.XMLStreamException
Specified by:
writeBinary in interface org.jvnet.staxex.XMLStreamWriterEx
Throws:
javax.xml.stream.XMLStreamException

writeBinary

public void writeBinary(javax.activation.DataHandler dataHandler)
                 throws javax.xml.stream.XMLStreamException
Specified by:
writeBinary in interface org.jvnet.staxex.XMLStreamWriterEx
Throws:
javax.xml.stream.XMLStreamException

writeBinary

public OutputStream writeBinary(String contentType)
                         throws javax.xml.stream.XMLStreamException
Specified by:
writeBinary in interface org.jvnet.staxex.XMLStreamWriterEx
Throws:
javax.xml.stream.XMLStreamException

writePCDATA

public void writePCDATA(CharSequence data)
                 throws javax.xml.stream.XMLStreamException
Specified by:
writePCDATA in interface org.jvnet.staxex.XMLStreamWriterEx
Throws:
javax.xml.stream.XMLStreamException

getProperty

public Object getProperty(String name)
                   throws IllegalArgumentException
Specified by:
getProperty in interface javax.xml.stream.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 javax.xml.stream.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.