public class Utils extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Utils.ExtensionFilenameFilter |
Constructor and Description |
---|
Utils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isByte(String str) |
static boolean |
isInt(String str) |
static boolean |
isShort(String str) |
static String |
join(String[] s,
String delimiter) |
static String |
listing(List<?> entries,
String delimiter,
String finalDelimiter) |
static String |
listing(String[] entries,
String delimiter,
String finalDelimiter) |
static List<String> |
parseQuotes(List<String> args)
Converts a list of arguments e.g ['lb', 'clearlog', 'world', '"my', 'world', 'of', 'swag"']
into a list of arguments with any text encapsulated by quotes treated as one word
For this particular example: ['lb', 'clearlog', 'world', '"my world of swag"']
|
static int |
parseTimeSpec(String[] spec) |
static String |
spaces(int count) |
public static String newline
public static boolean isInt(String str)
public static boolean isShort(String str)
public static boolean isByte(String str)
public static int parseTimeSpec(String[] spec)
public static String spaces(int count)
public static List<String> parseQuotes(List<String> args)
args
- The list of argumentsCopyright © 2015. All rights reserved.