public class Util extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_DELIMS |
Constructor and Description |
---|
Util() |
Modifier and Type | Method and Description |
---|---|
static List<URL> |
fileNamesAsURLs(String val,
String delims)
Treating the string as a separated list of filenames,
convert and return the list of urls.
|
static String |
getManifestHeaderValue(String name,
String altName,
Dictionary manifest)
Get the value of a manifest header.
|
static String |
resolvePropertyValue(String value)
recursively substitute the
${sysprop} by their actual system property. |
static void |
setProperty(Dictionary<String,String> properties,
String key,
String value) |
public static final String DEFAULT_DELIMS
public static String getManifestHeaderValue(String name, String altName, Dictionary manifest)
name
- the name of the headeraltName
- an alternative name for the header (useful for deprecated names)manifest
- the dictionarypublic static List<URL> fileNamesAsURLs(String val, String delims) throws Exception
val
- the separated list of filenamesdelims
- the separators (default is ,;
)Exception
- if unable to convert entry to a URLpublic static void setProperty(Dictionary<String,String> properties, String key, String value)
public static String resolvePropertyValue(String value)
${sysprop}
by their actual system property.
${sysprop,defaultvalue}
will use 'defaultvalue'
as the value if no
sysprop is defined. Not the most efficient code but we are shooting for
simplicity and speed of development here.value
- the input stringCopyright © 1995-2015 Webtide. All Rights Reserved.