You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-dev@db.apache.org by tf...@apache.org on 2012/08/25 05:41:06 UTC
svn commit: r1377194 - in
/db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/template:
TemplateFilter.java velocity/VelocityTemplateFilter.java
Author: tfischer
Date: Sat Aug 25 03:41:05 2012
New Revision: 1377194
URL: http://svn.apache.org/viewvc?rev=1377194&view=rev
Log:
javadoc
Modified:
db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/template/TemplateFilter.java
db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/template/velocity/VelocityTemplateFilter.java
Modified: db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/template/TemplateFilter.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/template/TemplateFilter.java?rev=1377194&r1=1377193&r2=1377194&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/template/TemplateFilter.java (original)
+++ db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/template/TemplateFilter.java Sat Aug 25 03:41:05 2012
@@ -29,11 +29,16 @@ public interface TemplateFilter
{
/**
* Filters (i.e modifies) a template.
+ *
* @param toFilter the input stream for the template to filter.
- * @param encoding the encoding of the template.
+ * @param encoding the encoding of the template, or null for the system
+ * encoding.
+ *
* @return A stream containing the filtered template.
+ *
* @throws IOException if an error occurs while reading or filtering
* the template.
*/
- InputStream filter(InputStream toFilter, String encoding) throws IOException;
+ InputStream filter(InputStream toFilter, String encoding)
+ throws IOException;
}
Modified: db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/template/velocity/VelocityTemplateFilter.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/template/velocity/VelocityTemplateFilter.java?rev=1377194&r1=1377193&r2=1377194&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/template/velocity/VelocityTemplateFilter.java (original)
+++ db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/template/velocity/VelocityTemplateFilter.java Sat Aug 25 03:41:05 2012
@@ -39,7 +39,7 @@ public class VelocityTemplateFilter impl
/**
* With which String tabs should be replaced
*/
- private String tabReplacement = " ";
+ private final String tabReplacement = " ";
/**
* This method filters the template and replaces some
@@ -48,7 +48,8 @@ public class VelocityTemplateFilter impl
* tabs with spaces to prevent bounces in different
* code editors with different tab-width-setting.
*
- * @param resource the input stream to filter
+ * @param resource the input stream to filter.
+ * @param encoding the encoding to use, or null for the system encoding.
*
* @return the filtered input stream.
*
---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org