|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wookie.w3c.util.UnicodeUtils
public class UnicodeUtils
A utility class for sanitizing unicode strings in accordance with the rules for handling normalized text content and attributes set out in the W3C Widgets specification
| Constructor Summary | |
|---|---|
UnicodeUtils()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
normalizeSpaces(java.lang.String in)
Normalizes all space characters in the given string to U+0020, then collapses multiple adjacent spaces to a single space, and removes any leading and trailing spaces. |
static java.lang.String |
normalizeWhitespace(java.lang.String in)
Normalizes all whitespace and space characters in the given string to U+0020, then collapses multiple adjacent spaces to a single space, and removes any leading and trailing spaces. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UnicodeUtils()
| Method Detail |
|---|
public static java.lang.String normalizeWhitespace(java.lang.String in)
in - the string to normalize
public static java.lang.String normalizeSpaces(java.lang.String in)
in - the string to normalize
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||