public class Util extends Object
This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.
Constructor and Description |
---|
Util() |
Modifier and Type | Method and Description |
---|---|
static String |
cleanSubOptions(String optionPrefix,
Set<String> allowedSubOptions,
String s)
Clean out unwanted sub options supplied inside a primary option.
|
static int |
extractIntOption(String opName,
String s) |
static String |
extractStringOption(String opName,
String s) |
static String |
findServerSettings(String[] args)
Locate the setting for the server properties.
|
static String |
justPackageName(String pkgName) |
static String |
normalizeDriveLetter(String file)
Normalize windows drive letter paths to upper case to enable string
comparison.
|
static Set<String> |
set(String... ss)
Convenience method to create a set with strings.
|
static String |
toFileSystemPath(String pkgId) |
public static String cleanSubOptions(String optionPrefix, Set<String> allowedSubOptions, String s)
optionPrefix
- The option name, including colon, eg --server:allowsSubOptions
- A set of the allowed sub options, id portfile etc.s
- The option settings string.public static String normalizeDriveLetter(String file)
file
- File name to normalizeCopyright © 2017 earcam. All rights reserved.