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:
parent
288d573e50
commit
30098b723e
1 changed files with 9 additions and 2 deletions
|
@ -483,6 +483,7 @@ public final class HtmlEncoder {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
|
@ -497,6 +498,13 @@ public final class HtmlEncoder {
|
|||
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);
|
||||
return ret.toString();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue