|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.edustructures.util.ADKStringUtils
public class ADKStringUtils
Various static helper routines for manipulating text strings.
| Constructor Summary | |
|---|---|
ADKStringUtils()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
encodeXML(java.lang.String str)
Escapes an XML string by replacing the characters shown below with their equivalent entity references as defined by the XML specification. |
static java.lang.String |
getStackTrace(java.lang.Throwable th)
|
static java.lang.String |
safePathString(java.lang.String path)
Replaces characters that are illegal in filenames to underscores ("_"). |
static java.lang.String |
unencodeXML(java.lang.String str)
Unescapes an XML string by replacing the entity references shown below with their equivalent characters as defined by the XML specification. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ADKStringUtils()
| Method Detail |
|---|
public static java.lang.String safePathString(java.lang.String path)
path - A string to be used in a file path or file name
public static java.lang.String encodeXML(java.lang.String str)
| Character | Entity Reference |
| < | < |
| > | > |
| & | & |
| ' | ' |
| " | " |
str - The source string
public static java.lang.String unencodeXML(java.lang.String str)
| Character | Entity Reference |
| < | < |
| > | > |
| & | & |
| ' | ' |
| " | " |
str - The source string
public static java.lang.String getStackTrace(java.lang.Throwable th)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||