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