|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.lwuit.html.HTMLUtils
public class HTMLUtils
This class contains several useful static methods for HTML
Method Summary | |
---|---|
static java.lang.String |
convertCharEntity(java.lang.String charEntity,
boolean lookupHTMLentities,
java.util.Hashtable userDefinedCharEntities)
Converts a char entity to the matching character or string. |
static java.lang.String |
convertHTMLCharEntity(java.lang.String charEntity)
Converts an HTML char entity to the matching character or string. |
static java.lang.String |
convertXMLCharEntity(java.lang.String charEntity)
Converts an XML char entity to the matching character or string. |
static java.lang.String |
encodeString(java.lang.String str)
Encodes the specified string to "percent-encoding" or URL encoding. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.lang.String convertXMLCharEntity(java.lang.String charEntity)
charEntity
- The char entity to convert (Not including the & and ;)
public static java.lang.String convertHTMLCharEntity(java.lang.String charEntity)
charEntity
- The char entity to convert (Not including the & and ;)
public static java.lang.String convertCharEntity(java.lang.String charEntity, boolean lookupHTMLentities, java.util.Hashtable userDefinedCharEntities)
charEntity
- The char entity to convert (Not including the & and ;)lookupHTMLentities
- true to include the basic HTML named char entities (unicode 160-255), false otherwiseuserDefinedCharEntities
- A hashtable containing (String,int) dentoing the char entity name and its unicode
public static java.lang.String encodeString(java.lang.String str)
str
- The string to be encoded
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |