org.apache.axis2.om.impl
Class OMOutputImpl
java.lang.Object
org.apache.axis2.om.impl.OMOutputImpl
- public class OMOutputImpl
- extends Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OMOutputImpl
public OMOutputImpl(XMLStreamWriter xmlWriter)
OMOutputImpl
public OMOutputImpl(OutputStream outStream,
OMOutputFormat format)
throws XMLStreamException,
FactoryConfigurationError
- Creates a new OMOutputImpl with specified encoding.
- Parameters:
outStream
- format
-
- Throws:
XMLStreamException
FactoryConfigurationError
- See Also:
OMOutputFormat.DEFAULT_CHAR_SET_ENCODING
flush
public void flush()
throws XMLStreamException
- Throws:
XMLStreamException
isOptimized
public boolean isOptimized()
getContentType
public String getContentType()
writeOptimized
public void writeOptimized(OMText node)
setXmlStreamWriter
public void setXmlStreamWriter(XMLStreamWriter xmlWriter)
getXmlStreamWriter
public XMLStreamWriter getXmlStreamWriter()
getMimeBoundary
public String getMimeBoundary()
getRootContentId
public String getRootContentId()
getNextContentId
public String getNextContentId()
getCharSetEncoding
public String getCharSetEncoding()
- Returns the character set encoding scheme. If the value of the
charSetEncoding is not set then the default will be returned.
- Returns:
- Returns encoding.
setCharSetEncoding
public void setCharSetEncoding(String charSetEncoding)
getXmlVersion
public String getXmlVersion()
setXmlVersion
public void setXmlVersion(String xmlVersion)
setSoap11
public void setSoap11(boolean b)
isIgnoreXMLDeclaration
public boolean isIgnoreXMLDeclaration()
setIgnoreXMLDeclaration
public void setIgnoreXMLDeclaration(boolean ignoreXMLDeclaration)
setDoOptimize
public void setDoOptimize(boolean b)
setOutputFormat
public void setOutputFormat(OMOutputFormat format)