From b457ca8a886252b8620937e358bda360c16706e4 Mon Sep 17 00:00:00 2001 From: hns Date: Wed, 15 May 2002 17:16:38 +0000 Subject: [PATCH] implemented writeCharArray() method --- src/helma/framework/ResponseTrans.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/helma/framework/ResponseTrans.java b/src/helma/framework/ResponseTrans.java index 8be39fde..e1261503 100644 --- a/src/helma/framework/ResponseTrans.java +++ b/src/helma/framework/ResponseTrans.java @@ -165,6 +165,15 @@ public class ResponseTrans implements Externalizable { buffer.append ("
\r\n"); } + /** + * Append a part from a char array to the response buffer. + */ + public void writeCharArray (char[] c, int start, int length) { + if (buffer == null) + buffer = new StringBuffer (512); + buffer.append (c, start, length); + } + /** * Replace special characters with entities, including <, > and ", thus allowing * no HTML tags.