|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.stripes.util.HtmlUtil
public class HtmlUtil
Provides simple utility methods for dealing with HTML.
Constructor Summary | |
---|---|
HtmlUtil()
|
Method Summary | |
---|---|
static String |
combineValues(Collection<String> values)
One of a pair of methods (the other is splitValues) that is used to combine several un-encoded values into a single delimited, encoded value for placement into a hidden field. |
static String |
encode(String fragment)
Replaces special HTML characters from the set [<, >, ", ', &] with their HTML escape codes. |
static Collection<String> |
splitValues(String value)
Takes in a String produced by combineValues and returns a Collection of values that contains the same values as originally supplied to combineValues. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HtmlUtil()
Method Detail |
---|
public static String encode(String fragment)
fragment
- a String fragment that might have HTML special characters in it
public static String combineValues(Collection<String> values)
values
- One or more values which are to be combined
public static Collection<String> splitValues(String value)
value
- a String value produced by
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |