tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@locus.apache.org
Subject cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/util XMLWriter.java
Date Thu, 09 Nov 2000 07:23:06 GMT
remm        00/11/08 23:23:06

  Modified:    catalina/src/share/org/apache/catalina/util XMLWriter.java
  Log:
  - Now enables to specify the charset used.
  
  Revision  Changes    Path
  1.3       +13 -4     jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/util/XMLWriter.java
  
  Index: XMLWriter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/util/XMLWriter.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- XMLWriter.java	2000/09/30 22:35:24	1.2
  +++ XMLWriter.java	2000/11/09 07:23:05	1.3
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/util/XMLWriter.java,v
1.2 2000/09/30 22:35:24 remm Exp $
  - * $Revision: 1.2 $
  - * $Date: 2000/09/30 22:35:24 $
  + * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/util/XMLWriter.java,v
1.3 2000/11/09 07:23:05 remm Exp $
  + * $Revision: 1.3 $
  + * $Date: 2000/11/09 07:23:05 $
    *
    * ====================================================================
    *
  @@ -244,7 +244,16 @@
        * Write XML Header.
        */
       public void writeXMLHeader() {
  -        buffer.append("<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n");
  +        buffer.append("<?xml version=\"1.0\"?>\n");
  +    }
  +    
  +    
  +    /**
  +     * Write XML Header.
  +     */
  +    public void writeXMLHeader(String encoding) {
  +        buffer.append("<?xml version=\"1.0\" encoding=\"" + encoding 
  +                      + "\"?>\n");
       }
       
       
  
  
  

Mime
View raw message