Added encodeFormValue() method that directly encodes to a StringBuffer.

Do not return a String when writing to StringBuffer in encodeAll().
This commit is contained in:
hns 2003-02-04 14:11:56 +00:00
parent 288d573e50
commit 30098b723e

View file

@ -483,6 +483,7 @@ public final class HtmlEncoder {
} }
} }
/** /**
* *
*/ */
@ -497,6 +498,13 @@ public final class HtmlEncoder {
return ret.toString(); return ret.toString();
} }
/**
*
*/
public final static void encodeFormValue (String str, StringBuffer ret) {
encodeAll (str, ret, false);
}
/** /**
* *
@ -515,9 +523,8 @@ public final class HtmlEncoder {
/** /**
* *
*/ */
public final static String encodeAll (String str, StringBuffer ret) { public final static void encodeAll (String str, StringBuffer ret) {
encodeAll (str, ret, true); encodeAll (str, ret, true);
return ret.toString();
} }