Author: lektran
Date: Fri May 14 21:37:24 2010
New Revision: 944486

URL: http://svn.apache.org/viewvc?rev=944486&view=rev
Log:
The following deprecated methods have been removed from 
org.ofbiz.base.util.UtilXml:
writeXmlDocument(OutputStream, Element, OutputFormat)

Modified:
    ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilXml.java

Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilXml.java
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilXml.java?rev=944486&r1=944485&r2=944486&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilXml.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilXml.java Fri May 14 
21:37:24 2010
@@ -56,7 +56,6 @@ import org.apache.xerces.xni.XMLLocator;
 import org.apache.xerces.xni.XMLResourceIdentifier;
 import org.apache.xerces.xni.XMLString;
 import org.apache.xerces.xni.XNIException;
-import org.apache.xml.serialize.OutputFormat;
 import org.w3c.dom.DOMConfiguration;
 import org.w3c.dom.Document;
 import org.w3c.dom.DocumentFragment;
@@ -335,27 +334,6 @@ public class UtilXml {
         }
     }
 
-    /**
-     * @deprecated Use  <a 
href="#writeXmlDocument(org.w3c.dom.Node,%20java.io.OutputStream,%20java.lang.String,%20boolean,%20boolean,%20int)">writeXmlDocument(Node
 node, OutputStream os, String encoding, boolean omitXmlDeclaration, boolean 
indent, int indentAmount)</a>
-     */
-    @Deprecated
-    public static void writeXmlDocument(OutputStream os, Element element, 
OutputFormat format) throws java.io.IOException {
-        if (element == null) {
-            Debug.logWarning("[UtilXml.writeXmlDocument] Element was null, 
doing nothing", module);
-            return;
-        }
-        if (os == null) {
-            Debug.logWarning("[UtilXml.writeXmlDocument] OutputStream was 
null, doing nothing", module);
-            return;
-        }
-        try {
-            writeXmlDocument(element, os, format.getEncoding(), 
format.getOmitXMLDeclaration(), format.getIndenting(), format.getIndent());
-        } catch (Exception e) {
-            // Wrapping this exception for backwards compatibility
-            throw new IOException(e.getMessage());
-        }
-    }
-
     public static Document readXmlDocument(String content)
             throws SAXException, ParserConfigurationException, 
java.io.IOException {
         return readXmlDocument(content, true);


Reply via email to