cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jer...@apache.org
Subject svn commit: r330528 - /cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/transformation/helpers/TextRecorder.java
Date Thu, 03 Nov 2005 11:59:50 GMT
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();
+    }
 }



Mime
View raw message