org.apache.ws.commons.om.impl
Class OMOutputImpl

java.lang.Object
  extended byorg.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)
           
 
Method Summary
 void flush()
           
 java.lang.String getCharSetEncoding()
          Returns the character set encoding scheme.
 java.lang.String getContentType()
           
 java.lang.String getMimeBoundary()
           
 java.lang.String getNextContentId()
           
 java.lang.String getRootContentId()
           
 javax.xml.stream.XMLStreamWriter getXmlStreamWriter()
           
 java.lang.String getXmlVersion()
           
 boolean isIgnoreXMLDeclaration()
           
 boolean isOptimized()
           
 void setCharSetEncoding(java.lang.String charSetEncoding)
           
 void setDoOptimize(boolean b)
           
 void setIgnoreXMLDeclaration(boolean ignoreXMLDeclaration)
           
 void setOutputFormat(OMOutputFormat format)
           
 void setSoap11(boolean b)
           
 void setXmlStreamWriter(javax.xml.stream.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
 

Constructor Detail

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
Method Detail

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)