public class ParsingUtils extends Object
| Constructor and Description |
|---|
ParsingUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
extractClasspath(String source,
String delimiter)
Extracts a classpath string from a source text.
|
static String |
extractRunnableCommand(String source)
Extracts a string from another string which can be used as a command in
shell.
|
static long |
parseBytes(String string)
Parses the count of bytes from a string.
|
static int |
parseBytesAsMegs(String string)
Parses the given string as a number representing megs.
|
public static int parseBytesAsMegs(String string) throws ParseException
string - the value stringParseException - the parse exceptionpublic static long parseBytes(String string) throws ParseException
string - the value stringParseException - the parse exceptionpublic static String extractRunnableCommand(String source)
source - Source string