|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.adobe.mediacore.utils.StringUtils
public final class StringUtils
Class containing various helper methods related to strings.
| Constructor Summary | |
|---|---|
StringUtils()
|
|
| Method Summary | |
|---|---|
static Metadata |
extractFromString(String input,
String groupDelimiter,
String valueDelimiter)
Parses the description string and puts the key/value pairs in a Metadata object. |
static String |
getFileExtension(String url)
Retrieves file extension for the provided url. |
static String[] |
getReunion(String[] array1,
String[] array2)
Returns the reunion of the two arrays. |
static boolean |
isEmpty(String value)
Checks if the string is null or contains only spaces. |
static String |
trimQuotes(String input)
Remove the leading and trailing quotes from the input string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StringUtils()
| Method Detail |
|---|
public static boolean isEmpty(String value)
value - the value to be checked
public static String getFileExtension(String url)
url - the url to be scanned for a file extension
public static String[] getReunion(String[] array1,
String[] array2)
array1 - the first array.array2 - the second array.
public static String trimQuotes(String input)
input - The input string
public static Metadata extractFromString(String input,
String groupDelimiter,
String valueDelimiter)
input - The string containing the key-value pairs.groupDelimiter - The delimiter between key/value pairs.valueDelimiter - The delimiter between keys and values inside a group.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||