Save This Page
Home » axiom-1.2.8-src » org.apache.axiom.om.impl » [javadoc | source]
org.apache.axiom.om.impl
public class: MTOMXMLStreamWriter [javadoc | source]
java.lang.Object
   org.apache.axiom.om.impl.MTOMXMLStreamWriter

All Implemented Interfaces:
    XMLStreamWriter

MTOMXMLStreamWriter is an XML + Attachments stream writer. For the moment this assumes that transport takes the decision of whether to optimize or not by looking at whether the MTOM optimize is enabled & also looking at the OM tree whether it has any optimizable content.
Constructor:
 public MTOMXMLStreamWriter(XMLStreamWriter xmlWriter) 
 public MTOMXMLStreamWriter(OutputStream outStream,
    OMOutputFormat format) throws XMLStreamException, FactoryConfigurationError 
    Creates a new MTOMXMLStreamWriter with specified encoding.
    Parameters:
    outStream -
    format -
    Throws:
    XMLStreamException -
    FactoryConfigurationError -
    Also see:
    OMOutputFormat#DEFAULT_CHAR_SET_ENCODING
Method from org.apache.axiom.om.impl.MTOMXMLStreamWriter Summary:
close,   flush,   getCharSetEncoding,   getContentType,   getMimeBoundary,   getNamespaceContext,   getNextContentId,   getOutputFormat,   getOutputStream,   getPrefix,   getProperty,   getRootContentId,   getXmlStreamWriter,   getXmlVersion,   isIgnoreXMLDeclaration,   isOptimized,   isOptimizedThreshold,   setCharSetEncoding,   setDefaultNamespace,   setDoOptimize,   setIgnoreXMLDeclaration,   setNamespaceContext,   setOutputFormat,   setPrefix,   setSoap11,   setXmlStreamWriter,   setXmlVersion,   writeAttribute,   writeAttribute,   writeAttribute,   writeCData,   writeCharacters,   writeCharacters,   writeComment,   writeDTD,   writeDefaultNamespace,   writeEmptyElement,   writeEmptyElement,   writeEmptyElement,   writeEndDocument,   writeEndElement,   writeEntityRef,   writeNamespace,   writeOptimized,   writeProcessingInstruction,   writeProcessingInstruction,   writeStartDocument,   writeStartDocument,   writeStartDocument,   writeStartElement,   writeStartElement,   writeStartElement
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.axiom.om.impl.MTOMXMLStreamWriter Detail:
 public  void close() throws XMLStreamException 
 public  void flush() throws XMLStreamException 
    Flush is overridden to trigger the attachment serialization
 public String getCharSetEncoding() 
    Returns the character set encoding scheme. If the value of the charSetEncoding is not set then the default will be returned.
 public String getContentType() 
 public String getMimeBoundary() 
 public NamespaceContext getNamespaceContext() 
 public String getNextContentId() 
 public OMOutputFormat getOutputFormat() 
    Get the output format used by this writer.

    The caller should use the returned instance in a read-only way, i.e. he should not modify the settings of the output format. Any attempt to do so will lead to unpredictable results.

 public OutputStream getOutputStream() throws XMLStreamException 
    If this XMLStreamWriter is connected to an OutputStream then the OutputStream is returned. This allows a node (perhaps an OMSourcedElement) to write its content directly to the OutputStream.
 public String getPrefix(String string) throws XMLStreamException 
 public Object getProperty(String string) throws IllegalArgumentException 
 public String getRootContentId() 
 public XMLStreamWriter getXmlStreamWriter() 
 public String getXmlVersion() 
 public boolean isIgnoreXMLDeclaration() 
 public boolean isOptimized() 
 public boolean isOptimizedThreshold(OMText node) 
 public  void setCharSetEncoding(String charSetEncoding) 
 public  void setDefaultNamespace(String string) throws XMLStreamException 
 public  void setDoOptimize(boolean b) 
 public  void setIgnoreXMLDeclaration(boolean ignoreXMLDeclaration) 
 public  void setNamespaceContext(NamespaceContext namespaceContext) throws XMLStreamException 
 public  void setOutputFormat(OMOutputFormat format) 
 public  void setPrefix(String string,
    String string1) throws XMLStreamException 
 public  void setSoap11(boolean b) 
 public  void setXmlStreamWriter(XMLStreamWriter xmlWriter) 
 public  void setXmlVersion(String xmlVersion) 
 public  void writeAttribute(String string,
    String string1) throws XMLStreamException 
 public  void writeAttribute(String string,
    String string1,
    String string2) throws XMLStreamException 
 public  void writeAttribute(String string,
    String string1,
    String string2,
    String string3) throws XMLStreamException 
 public  void writeCData(String string) throws XMLStreamException 
 public  void writeCharacters(String string) throws XMLStreamException 
 public  void writeCharacters(char[] chars,
    int i,
    int i1) throws XMLStreamException 
 public  void writeComment(String string) throws XMLStreamException 
 public  void writeDTD(String string) throws XMLStreamException 
 public  void writeDefaultNamespace(String string) throws XMLStreamException 
 public  void writeEmptyElement(String string) throws XMLStreamException 
 public  void writeEmptyElement(String string,
    String string1) throws XMLStreamException 
 public  void writeEmptyElement(String string,
    String string1,
    String string2) throws XMLStreamException 
 public  void writeEndDocument() throws XMLStreamException 
 public  void writeEndElement() throws XMLStreamException 
 public  void writeEntityRef(String string) throws XMLStreamException 
 public  void writeNamespace(String string,
    String string1) throws XMLStreamException 
 public  void writeOptimized(OMText node) 
 public  void writeProcessingInstruction(String string) throws XMLStreamException 
 public  void writeProcessingInstruction(String string,
    String string1) throws XMLStreamException 
 public  void writeStartDocument() throws XMLStreamException 
 public  void writeStartDocument(String string) throws XMLStreamException 
 public  void writeStartDocument(String string,
    String string1) throws XMLStreamException 
 public  void writeStartElement(String string) throws XMLStreamException 
 public  void writeStartElement(String string,
    String string1) throws XMLStreamException 
 public  void writeStartElement(String string,
    String string1,
    String string2) throws XMLStreamException