Author: markt
Date: Wed Aug  8 21:04:45 2012
New Revision: 1370969

URL: http://svn.apache.org/viewvc?rev=1370969&view=rev
Log:
Deprecate code that will be removed in 8.0.x

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

Modified: tomcat/tc7.0.x/trunk/java/org/apache/catalina/util/DOMWriter.java
URL: 
http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/java/org/apache/catalina/util/DOMWriter.java?rev=1370969&r1=1370968&r2=1370969&view=diff
==============================================================================
--- tomcat/tc7.0.x/trunk/java/org/apache/catalina/util/DOMWriter.java (original)
+++ tomcat/tc7.0.x/trunk/java/org/apache/catalina/util/DOMWriter.java Wed Aug  
8 21:04:45 2012
@@ -61,7 +61,10 @@ public class DOMWriter {
    /** Canonical output. */
    protected boolean canonical;
 
-
+   /**
+    * @deprecated   Unused - will be removed in 8.0.x
+    */
+   @Deprecated
    public DOMWriter(String encoding, boolean canonical)
    throws UnsupportedEncodingException {
       out = new PrintWriter(new OutputStreamWriter(System.out, encoding));
@@ -72,7 +75,12 @@ public class DOMWriter {
    // Constructors
    //
 
-   /** Default constructor. */
+   /**
+    * Default constructor.
+    *
+    * @deprecated   Unused - will be removed in 8.0.x
+    */
+   @Deprecated
    public DOMWriter(boolean canonical) throws UnsupportedEncodingException {
       this( getWriterEncoding(), canonical);
    }
@@ -82,10 +90,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 +110,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 +124,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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to