|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--kom.tools.web.HTMLTools
This class contains helpful HTML methods
Constructor Summary | |
HTMLTools()
|
Method Summary | |
private static byte |
ascii2Hex(char c)
Converts an ASCII char [0-9a-fA-F] to binary equivalent (0-15) |
static java.lang.String |
ascii2html(java.lang.String asciiString)
Converts string to HTML format by replacing special characters with entities. |
static java.lang.String |
ascii2url(java.lang.String s)
Converts ASCII string to URL |
static java.lang.String |
url2ascii(java.lang.String us)
Converts the URL-encoded input to ASCII |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public HTMLTools()
Method Detail |
private static final byte ascii2Hex(char c)
c
- The ASCII characterpublic static java.lang.String ascii2url(java.lang.String s)
s
- The ASCII input stringpublic static java.lang.String url2ascii(java.lang.String us)
us
- The URL-encoded input datapublic static java.lang.String ascii2html(java.lang.String asciiString)
asciiString
- The ASCII input string
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |