public class DataLoaderUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
OPTION_NAME_ENCODING |
Constructor and Description |
---|
DataLoaderUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
getBooleanArgument(int index,
java.lang.Object value) |
static boolean |
getBooleanOption(java.lang.String name,
java.lang.Object value) |
static char |
getCharArgument(int index,
java.lang.Object value) |
static char |
getCharOption(java.lang.String name,
java.lang.Object value) |
static int |
getIntArgument(int index,
java.lang.Object value) |
static int |
getIntOption(java.lang.String name,
java.lang.Object value) |
static java.lang.String |
getStringArgument(int index,
java.lang.Object value) |
static java.lang.String[] |
getStringArrayArgument(int index,
java.lang.Object value) |
static java.lang.String[] |
getStringArrayArgument(int index,
java.lang.Object value,
boolean allowString) |
static java.lang.String[] |
getStringArrayOption(java.lang.String name,
java.lang.Object value) |
static java.lang.String[] |
getStringArrayOption(java.lang.String name,
java.lang.Object value,
boolean allowString) |
static java.lang.String |
getStringOption(java.lang.String name,
java.lang.Object value) |
public static final java.lang.String OPTION_NAME_ENCODING
public static java.lang.String getStringArgument(int index, java.lang.Object value)
public static java.lang.String getStringOption(java.lang.String name, java.lang.Object value)
public static char getCharArgument(int index, java.lang.Object value)
public static char getCharOption(java.lang.String name, java.lang.Object value)
public static boolean getBooleanArgument(int index, java.lang.Object value)
public static boolean getBooleanOption(java.lang.String name, java.lang.Object value)
public static int getIntArgument(int index, java.lang.Object value)
public static int getIntOption(java.lang.String name, java.lang.Object value)
public static java.lang.String[] getStringArrayArgument(int index, java.lang.Object value)
public static java.lang.String[] getStringArrayOption(java.lang.String name, java.lang.Object value)
public static java.lang.String[] getStringArrayArgument(int index, java.lang.Object value, boolean allowString)
allowString
- if true
a value that is a single string
will be treated as a 1 long sequence that contains that string.public static java.lang.String[] getStringArrayOption(java.lang.String name, java.lang.Object value, boolean allowString)
allowString
- if true
a value that is a single string
will be treated as a 1 long sequence that contains that string.