You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2012/08/08 22:54:20 UTC

svn commit: r1370958 - /tomcat/trunk/java/org/apache/catalina/util/DOMWriter.java

Author: markt
Date: Wed Aug  8 20:54:19 2012
New Revision: 1370958

URL: http://svn.apache.org/viewvc?rev=1370958&view=rev
Log:
Only used by WebDAV. Deprecate the unused parts.

Modified:
    tomcat/trunk/java/org/apache/catalina/util/DOMWriter.java

Modified: tomcat/trunk/java/org/apache/catalina/util/DOMWriter.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/util/DOMWriter.java?rev=1370958&r1=1370957&r2=1370958&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/util/DOMWriter.java (original)
+++ tomcat/trunk/java/org/apache/catalina/util/DOMWriter.java Wed Aug  8 20:54:19 2012
@@ -72,7 +72,12 @@ public class DOMWriter {
    // Constructors
    //
 
-   /** Default constructor. */
+   /**
+    * Default constructor.
+    *
+    * @deprecated   Unused - will be removws in 8.0.x
+    */
+   @Deprecated
    public DOMWriter(boolean canonical) throws UnsupportedEncodingException {
       this( getWriterEncoding(), canonical);
    }
@@ -82,10 +87,18 @@ public class DOMWriter {
         this.canonical = canonical;
     }
 
+   /**
+    * @deprecated   Unused - will be removed in 8.0.x
+    */
+   @Deprecated
    public boolean getQualifiedNames() {
       return this.qualifiedNames;
    }
 
+   /**
+    * @deprecated   Unnecessary - will be removed in 8.0.x
+    */
+   @Deprecated
    public void setQualifiedNames(boolean qualifiedNames) {
       this.qualifiedNames = qualifiedNames;
    }
@@ -94,6 +107,10 @@ public class DOMWriter {
       return (PRINTWRITER_ENCODING);
    }// getWriterEncoding
 
+   /**
+    * @deprecated   Unused - will be removed in 8.0.x
+    */
+   @Deprecated
    public static void  setWriterEncoding( String encoding ) {
       if( encoding.equalsIgnoreCase( "DEFAULT" ) )
          PRINTWRITER_ENCODING  = "UTF8";
@@ -104,6 +121,10 @@ public class DOMWriter {
    }// setWriterEncoding
 
 
+   /**
+    * @deprecated   Unused - will be removed in 8.0.x
+    */
+   @Deprecated
    public static boolean isValidJavaEncoding( String encoding ) {
       for ( int i = 0; i < MIME2JAVA_ENCODINGS.length; i++ )
          if ( encoding.equals( MIME2JAVA_ENCODINGS[i] ) )



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org