Author: senaka
Date: Sun Sep 20 15:26:42 2009
New Revision: 817042

URL: http://svn.apache.org/viewvc?rev=817042&view=rev
Log:
Fixing WSCOMMONS-502.

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

Modified: 
webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMDocumentImpl.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMDocumentImpl.java?rev=817042&r1=817041&r2=817042&view=diff
==============================================================================
--- 
webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMDocumentImpl.java
 (original)
+++ 
webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMDocumentImpl.java
 Sun Sep 20 15:26:42 2009
@@ -317,4 +317,16 @@
                                      boolean includeXMLDeclaration) throws 
XMLStreamException {
         OMDocumentImplUtil.internalSerialize(this, writer, cache, 
includeXMLDeclaration);
     }
+
+    /** Serializes the document with the XML declaration. */
+    public void internalSerializeAndConsume(XMLStreamWriter writer)
+            throws XMLStreamException {
+        internalSerialize(writer, false);
+    }
+
+
+    /** Serializes the document with cache. */
+    public void internalSerialize(XMLStreamWriter writer) throws 
XMLStreamException {
+        internalSerialize(writer, true);
+    }
 }


Reply via email to