You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by je...@apache.org on 2005/11/03 12:59:50 UTC
svn commit: r330528 -
/cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/transformation/helpers/TextRecorder.java
Author: jeremy
Date: Thu Nov 3 03:59:45 2005
New Revision: 330528
URL: http://svn.apache.org/viewcvs?rev=330528&view=rev
Log:
Added a special version of the getText method that does not trim the string, for use by the SQLTransformer
Modified:
cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/transformation/helpers/TextRecorder.java
Modified: cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/transformation/helpers/TextRecorder.java
URL: http://svn.apache.org/viewcvs/cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/transformation/helpers/TextRecorder.java?rev=330528&r1=330527&r2=330528&view=diff
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/transformation/helpers/TextRecorder.java (original)
+++ cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/transformation/helpers/TextRecorder.java Thu Nov 3 03:59:45 2005
@@ -44,4 +44,15 @@
public String getText() {
return this.buffer.toString().trim();
}
+
+ /**
+ * @return Recorded text so far.
+ *
+ * NB. This is a special version of the method used by SQLTransformer
+ * Trimming the String can damage the SQL Syntax under certain circumstances
+ *
+ */
+ public String getAllText() {
+ return this.buffer.toString();
+ }
}