Author: vsiveton Date: Mon Oct 27 04:45:41 2008 New Revision: 708148 URL: http://svn.apache.org/viewvc?rev=708148&view=rev Log: o javadoc about UTF-8 encoding o dont escape character
Modified: maven/doxia/doxia/trunk/doxia-modules/doxia-module-apt/src/main/java/org/apache/maven/doxia/module/apt/AptSink.java Modified: maven/doxia/doxia/trunk/doxia-modules/doxia-module-apt/src/main/java/org/apache/maven/doxia/module/apt/AptSink.java URL: http://svn.apache.org/viewvc/maven/doxia/doxia/trunk/doxia-modules/doxia-module-apt/src/main/java/org/apache/maven/doxia/module/apt/AptSink.java?rev=708148&r1=708147&r2=708148&view=diff ============================================================================== --- maven/doxia/doxia/trunk/doxia-modules/doxia-module-apt/src/main/java/org/apache/maven/doxia/module/apt/AptSink.java (original) +++ maven/doxia/doxia/trunk/doxia-modules/doxia-module-apt/src/main/java/org/apache/maven/doxia/module/apt/AptSink.java Mon Oct 27 04:45:41 2008 @@ -30,6 +30,8 @@ /** * APT Sink implementation. + * <br/> + * <b>Note</b>: The encoding used is UTF-8. * * @author eredmond * @version $Id$ @@ -102,9 +104,10 @@ // ---------------------------------------------------------------------- /** - * Constructor, initialize the variables. + * Constructor, initialize the Writer and the variables. * - * @param writer The writer to write the result. + * @param writer not null writer to write the result. <b>Should</b> be an UTF-8 Writer. + * You could use <code>newWriter</code> methods from [EMAIL PROTECTED] org.codehaus.plexus.util.WriterFactory}. */ public AptSink( Writer writer ) { @@ -974,24 +977,7 @@ buffer.append( c ); break; default: - if ( c > 127 ) - { - buffer.append( "\\u" ); - String hex = Integer.toHexString( c ); - if ( hex.length() == 2 ) - { - buffer.append( "00" ); - } - else if ( hex.length() == 3 ) - { - buffer.append( "0" ); - } - buffer.append( hex ); - } - else - { - buffer.append( c ); - } + buffer.append( c ); } }