org.apache.axis2.om.impl
Class OMOutputImpl

java.lang.Object
  extended byorg.apache.axis2.om.impl.OMOutputImpl

public class OMOutputImpl
extends java.lang.Object

For the moment this assumes that transport takes the decision of whether to optimise or not by looking at whether the MTOM optimise is enabled & also looking at the OM tree whether it has any optimisable content


Field Summary
static java.lang.String DEFAULT_CHAR_SET_ENCODING
          Field DEFAULT_CHAR_SET_ENCODING specifies the default character encoding scheme to be used
 
Constructor Summary
OMOutputImpl()
           
OMOutputImpl(java.io.OutputStream outStream, boolean doOptimize)
          This creates a new OMOutputImpl with default encoding
OMOutputImpl(XMLStreamWriter xmlWriter)
           
 
Method Summary
 void flush()
           
 java.lang.String getCharSetEncoding()
          Returns the character set endocing scheme If the value of the charSetEncoding is not set then the default will be returned
 java.lang.String getContentType()
           
 java.lang.String getMimeBoundary()
           
 java.lang.String getNextContentId()
           
 java.lang.String getRootContentId()
           
 XMLStreamWriter getXmlStreamWriter()
           
 java.lang.String getXmlVersion()
           
 void ignoreXMLDeclaration(boolean ignoreXMLDeclaration)
           
 boolean isIgnoreXMLDeclaration()
           
 boolean isOptimized()
           
 void setCharSetEncoding(java.lang.String charSetEncoding)
           
 void setDoOptimize(boolean b)
           
 void setOutputStream(java.io.OutputStream outStream, boolean doOptimize)
           
 void setSoap11(boolean b)
           
 void setXmlStreamWriter(XMLStreamWriter xmlWriter)
           
 void setXmlVersion(java.lang.String xmlVersion)
           
 void writeOptimized(OMText node)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_CHAR_SET_ENCODING

public static final java.lang.String DEFAULT_CHAR_SET_ENCODING
Field DEFAULT_CHAR_SET_ENCODING specifies the default character encoding scheme to be used

See Also:
Constant Field Values
Constructor Detail

OMOutputImpl

public OMOutputImpl()

OMOutputImpl

public OMOutputImpl(XMLStreamWriter xmlWriter)

OMOutputImpl

public OMOutputImpl(java.io.OutputStream outStream,
                    boolean doOptimize)
             throws XMLStreamException,
                    FactoryConfigurationError
This creates a new OMOutputImpl with default encoding

Parameters:
outStream -
doOptimize -
Throws:
XMLStreamException
FactoryConfigurationError
See Also:
DEFAULT_CHAR_SET_ENCODING
Method Detail

setOutputStream

public void setOutputStream(java.io.OutputStream outStream,
                            boolean doOptimize)
                     throws XMLStreamException,
                            FactoryConfigurationError
Throws:
XMLStreamException
FactoryConfigurationError

flush

public void flush()
           throws XMLStreamException
Throws:
XMLStreamException

isOptimized

public boolean isOptimized()

getContentType

public java.lang.String getContentType()

writeOptimized

public void writeOptimized(OMText node)

setXmlStreamWriter

public void setXmlStreamWriter(XMLStreamWriter xmlWriter)

getXmlStreamWriter

public XMLStreamWriter getXmlStreamWriter()

getMimeBoundary

public java.lang.String getMimeBoundary()

getRootContentId

public java.lang.String getRootContentId()

getNextContentId

public java.lang.String getNextContentId()

getCharSetEncoding

public java.lang.String getCharSetEncoding()
Returns the character set endocing scheme If the value of the charSetEncoding is not set then the default will be returned

Returns:

setCharSetEncoding

public void setCharSetEncoding(java.lang.String charSetEncoding)

getXmlVersion

public java.lang.String getXmlVersion()

setXmlVersion

public void setXmlVersion(java.lang.String xmlVersion)

setSoap11

public void setSoap11(boolean b)
Parameters:
b -

isIgnoreXMLDeclaration

public boolean isIgnoreXMLDeclaration()

ignoreXMLDeclaration

public void ignoreXMLDeclaration(boolean ignoreXMLDeclaration)

setDoOptimize

public void setDoOptimize(boolean b)
Parameters:
b -