|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.rssowl.util.shop.StringShop
public class StringShop
Class provides some methods to handle / work with Strings.
| Field Summary | |
|---|---|
static java.lang.String |
AUTH_TOKENIZER
Custom Tokenizer for Authentication Strings |
static java.lang.String |
CAT_TOKENIZER
Custom Tokenizer for Category Path |
static java.lang.String |
EMPTY_TEXT_DATA
Data used for empty DND Text Transfers |
| Constructor Summary | |
|---|---|
private |
StringShop()
This utility class constructor is hidden |
| Method Summary | |
|---|---|
static java.lang.String |
createAnchor(java.lang.String url)
Create a HTML anchor from the given URL. |
static java.lang.String |
createAnchor(java.lang.String url,
java.lang.String name)
Create a HTML anchor from the given URL. |
static java.lang.String |
createFileName(java.lang.String str)
Create a valid filename from the given String. |
static java.lang.String |
escapeAmpersands(java.lang.String str)
Escape any Ampersand from the given String. |
static java.lang.String |
hrTrim(java.lang.String str,
int limit)
Trim the given String to the given Limit. |
static boolean |
isset(java.lang.String str)
Returns TRUE in case the given String has a value that is not "". |
static boolean |
isTerminating(java.lang.String ch)
Check if a given char is a terminating an URL. |
static boolean |
isWhiteSpaceOrEmpty(java.lang.String str)
Returns TRUE if the String only cosists of whitespaces or is null / empty. |
static java.lang.String |
pointTrim(java.lang.String str,
int length,
boolean escapeMnemonics)
Trims the given String to the given length and appends "..." |
static java.lang.String |
printf(java.lang.String str,
java.lang.String[] wildcard,
java.lang.String[] substitution)
Substitute wildcards in a String and return it |
static java.lang.String |
replaceAll(java.lang.String str,
java.lang.String search,
java.lang.String replace)
This method does exactly the same as String.replaceAll() with the difference that no regular expressions are used to perform the replacement. |
static java.lang.String |
stripTags(java.lang.String str)
Remove HTML tags from the given String |
static java.util.Vector |
toVector(java.lang.String[] array)
Create a Vector containing all Strings from the String array |
static java.lang.String |
unicodeToEntities(java.lang.String str)
Convert the non ASCII-characters of a String into Unicode HTML entities. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String AUTH_TOKENIZER
public static final java.lang.String CAT_TOKENIZER
public static final java.lang.String EMPTY_TEXT_DATA
| Constructor Detail |
|---|
private StringShop()
| Method Detail |
|---|
public static java.lang.String createAnchor(java.lang.String url)
url - The URL of the new anchor
public static java.lang.String createAnchor(java.lang.String url,
java.lang.String name)
url - The URL of the new anchorname - The Name of the new anchor
public static java.lang.String createFileName(java.lang.String str)
str - The String to convert to a valid filename.
public static java.lang.String escapeAmpersands(java.lang.String str)
str - The String to escape any Ampersand.
public static java.lang.String hrTrim(java.lang.String str,
int limit)
str - The String to Trimlimit - The max. number of characters
public static boolean isset(java.lang.String str)
str - The String to check
public static boolean isTerminating(java.lang.String ch)
ch - Any char
public static boolean isWhiteSpaceOrEmpty(java.lang.String str)
str - The string to check
public static java.lang.String pointTrim(java.lang.String str,
int length,
boolean escapeMnemonics)
str - The String to Trimlength - The max. length of the StringescapeMnemonics - If TRUE all "&" will be replaced with "&&"
public static java.lang.String printf(java.lang.String str,
java.lang.String[] wildcard,
java.lang.String[] substitution)
str - The String to formatwildcard - Array of wildcardssubstitution - Array of wildcards for the substitution of the
wildcards.
public static java.lang.String replaceAll(java.lang.String str,
java.lang.String search,
java.lang.String replace)
str - The source String to search and replacesearch - The search term that should get replacedreplace - The value that replaces the search term
public static java.lang.String stripTags(java.lang.String str)
str - The String to remove the Tags from
public static java.util.Vector toVector(java.lang.String[] array)
array - The array to convert to a Vector
public static java.lang.String unicodeToEntities(java.lang.String str)
str - The String to convert
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||