ws-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From veit...@apache.org
Subject svn commit: r1336415 - /webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/ds/InputStreamDataSource.java
Date Wed, 09 May 2012 21:42:29 GMT
Author: veithen
Date: Wed May  9 21:42:29 2012
New Revision: 1336415

URL: http://svn.apache.org/viewvc?rev=1336415&view=rev
Log:
Removed unused code.

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

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/ds/InputStreamDataSource.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/ds/InputStreamDataSource.java?rev=1336415&r1=1336414&r2=1336415&view=diff
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/ds/InputStreamDataSource.java
(original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/ds/InputStreamDataSource.java
Wed May  9 21:42:29 2012
@@ -19,11 +19,8 @@
 package org.apache.axiom.om.ds;
 
 import org.apache.axiom.om.OMDataSourceExt;
-import org.apache.axiom.om.OMDocument;
 import org.apache.axiom.om.OMException;
-import org.apache.axiom.om.OMNode;
 import org.apache.axiom.om.OMOutputFormat;
-import org.apache.axiom.om.impl.builder.StAXOMBuilder;
 import org.apache.axiom.om.util.StAXUtils;
 
 import javax.xml.stream.XMLStreamException;
@@ -36,7 +33,6 @@ import java.io.IOException;
 import java.io.InputStream;
 import java.io.OutputStream;
 import java.io.UnsupportedEncodingException;
-import java.util.Iterator;
 
 /**
  * InputStream is an example OMDataSourceExt.
@@ -181,30 +177,6 @@ public class InputStreamDataSource exten
     }
     
     /**
-     * Simple utility that takes an XMLStreamReader and writes it
-     * to an XMLStreamWriter
-     * @param reader
-     * @param writer
-     * @throws XMLStreamException
-     */
-    private static void reader2writer(XMLStreamReader reader, 
-                                     XMLStreamWriter writer)
-    throws XMLStreamException {
-        StAXOMBuilder builder = new StAXOMBuilder(reader);
-        builder.releaseParserOnClose(true);
-        try {
-            OMDocument omDocument = builder.getDocument();
-            Iterator it = omDocument.getChildren();
-            while (it.hasNext()) {
-                OMNode omNode = (OMNode) it.next();
-                omNode.serializeAndConsume(writer);
-            }
-        } finally {
-            builder.close();
-        }
-    }
-    
-    /**
      * Object containing the InputStream/encoding pair
      */
     public class Data {



Mime
View raw message