Author: hboutemy
Date: Mon Sep 29 05:01:45 2008
New Revision: 700075

URL: http://svn.apache.org/viewvc?rev=700075&view=rev
Log:
use XML encoding detection when trying to read XML content instead of platform 
encoding

Modified:
    
maven/doxia/doxia-tools/trunk/doxia-converter/src/main/java/org/apache/maven/doxia/DefaultConverter.java

Modified: 
maven/doxia/doxia-tools/trunk/doxia-converter/src/main/java/org/apache/maven/doxia/DefaultConverter.java
URL: 
http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-converter/src/main/java/org/apache/maven/doxia/DefaultConverter.java?rev=700075&r1=700074&r2=700075&view=diff
==============================================================================
--- 
maven/doxia/doxia-tools/trunk/doxia-converter/src/main/java/org/apache/maven/doxia/DefaultConverter.java
 (original)
+++ 
maven/doxia/doxia-tools/trunk/doxia-converter/src/main/java/org/apache/maven/doxia/DefaultConverter.java
 Mon Sep 29 05:01:45 2008
@@ -22,7 +22,6 @@
 import java.io.File;
 import java.io.FileInputStream;
 import java.io.FileNotFoundException;
-import java.io.FileReader;
 import java.io.IOException;
 import java.io.InputStream;
 import java.io.Reader;
@@ -538,7 +537,7 @@
      * Determines if a given File shall be handled as XML.
      *
      * @param f not null file
-     * @return <code>true</code> if the given file has XML content, 
<code>fale</code> otherwise.
+     * @return <code>true</code> if the given file has XML content, 
<code>false</code> otherwise.
      */
     private static boolean isXML( File f )
     {
@@ -550,7 +549,7 @@
         Reader reader = null;
         try
         {
-            reader = new FileReader( f );
+            reader = new XmlStreamReader( f );
             XmlPullParser parser = new MXParser();
             parser.setInput( reader );
             parser.nextToken();


Reply via email to