|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.tigris.scarab.util.ScarabUtil
A Utility class for code that doesn't really go other places.
| Constructor Summary | |
ScarabUtil()
|
|
| Method Summary | |
static boolean |
contains(java.lang.Object[] array,
java.lang.Object obj)
Check whether Object array contains passed in object. |
static java.lang.String |
filterNonXml(java.lang.String input)
|
static java.lang.String |
findValue(org.apache.turbine.RunData runData,
java.lang.String name)
Finds the first value for the named request parameter. |
static java.lang.String |
fixEOLs(java.lang.String str)
Hack to replace the string "\n" with EOL characters... |
static void |
initializeScarab()
System global initialization. |
static java.lang.String |
linkifyText(java.lang.String input,
ScarabLink link,
Module module)
It uses the IssueIdParser to convert all issue id's into links. |
static java.lang.String |
urlEncode(java.lang.String in)
URL encodes in. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ScarabUtil()
| Method Detail |
public static void initializeScarab()
public static java.lang.String findValue(org.apache.turbine.RunData runData,
java.lang.String name)
runData - Source of the export format information.name - The name of the request parameter to get a value
for.
null if indeterminate.
public static java.lang.String linkifyText(java.lang.String input,
ScarabLink link,
Module module)
throws java.lang.Exception
java.lang.Exception
public static final boolean contains(java.lang.Object[] array,
java.lang.Object obj)
public static java.lang.String fixEOLs(java.lang.String str)
public static final java.lang.String urlEncode(java.lang.String in)
in. If the string is null, nothing will be
written. This method is faster than urlEncodeSlow if the string to
encode does not contain any characters needing encoding. It adds some
penalty for strings which actually need to be encoded. for short strings
~20 characters the upside is a 75% decrease. while the penalty is a 10%
increase. As many query parameters do not need encoding even in i18n
applications it should be much better to delay the byte conversion.
in - the String to encode.
public static java.lang.String filterNonXml(java.lang.String input)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||