Author: veithen
Date: Sun Dec  7 13:23:45 2008
New Revision: 724206

URL: http://svn.apache.org/viewvc?rev=724206&view=rev
Log:
WSCOMMONS-335: Added a getOutputFormat method to MTOMXMLStreamWriter.

Modified:
    
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/MTOMXMLStreamWriter.java

Modified: 
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/MTOMXMLStreamWriter.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/MTOMXMLStreamWriter.java?rev=724206&r1=724205&r2=724206&view=diff
==============================================================================
--- 
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/MTOMXMLStreamWriter.java
 (original)
+++ 
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/MTOMXMLStreamWriter.java
 Sun Dec  7 13:23:45 2008
@@ -390,6 +390,19 @@
         format.setDoOptimize(b);
     }
 
+    /**
+     * Get the output format used by this writer.
+     * <p>
+     * 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.
+     * 
+     * @return the output format used by this writer
+     */
+    public OMOutputFormat getOutputFormat() {
+        return format;
+    }
+
     public void setOutputFormat(OMOutputFormat format) {
         this.format = format;
     }


Reply via email to