incubator-kato-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From monte...@apache.org
Subject svn commit: r796978 - /incubator/kato/trunk/org.apache.kato/kato.anttasks/src/main/java/org/apache/kato/anttasks/xmlgen/XMLJavaDocDoclet.java
Date Thu, 23 Jul 2009 08:41:06 GMT
Author: monteith
Date: Thu Jul 23 08:41:06 2009
New Revision: 796978

URL: http://svn.apache.org/viewvc?rev=796978&view=rev
Log:
Fix up XMLJavaDocDoclet to create a writer that uses UTF-8, rather than the default characterset.

Modified:
    incubator/kato/trunk/org.apache.kato/kato.anttasks/src/main/java/org/apache/kato/anttasks/xmlgen/XMLJavaDocDoclet.java

Modified: incubator/kato/trunk/org.apache.kato/kato.anttasks/src/main/java/org/apache/kato/anttasks/xmlgen/XMLJavaDocDoclet.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.anttasks/src/main/java/org/apache/kato/anttasks/xmlgen/XMLJavaDocDoclet.java?rev=796978&r1=796977&r2=796978&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.anttasks/src/main/java/org/apache/kato/anttasks/xmlgen/XMLJavaDocDoclet.java
(original)
+++ incubator/kato/trunk/org.apache.kato/kato.anttasks/src/main/java/org/apache/kato/anttasks/xmlgen/XMLJavaDocDoclet.java
Thu Jul 23 08:41:06 2009
@@ -15,8 +15,10 @@
 package org.apache.kato.anttasks.xmlgen;
 
 import java.io.File;
-import java.io.FileWriter;
+import java.io.FileOutputStream;
 import java.io.IOException;
+import java.io.OutputStreamWriter;
+import java.io.Writer;
 import java.util.Map;
 import java.util.TreeMap;
 
@@ -51,9 +53,8 @@
 	 public static boolean start(RootDoc root) throws IOException  { 
 		 
 		  output.getParentFile().mkdirs();
-		  
-		  FileWriter fw=new FileWriter(output);
-		  
+		  	  
+		  Writer fw = new OutputStreamWriter(new FileOutputStream(output), "UTF8");
 		  XMLWriter writer=new XMLWriter(fw);
 		  
 		  writer.open();



Mime
View raw message