|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.compomics.software.CommandLineUtils
public class CommandLineUtils
This class groups some convenience methods for the use of compomics tools in command line.
Field Summary | |
---|---|
static String |
SEPARATOR
The command line argument separator. |
Constructor Summary | |
---|---|
CommandLineUtils()
|
Method Summary | |
---|---|
static String |
concatenate(ArrayList<String> args)
Returns the list of arguments as space separated string for the command line. |
static String |
concatenate(String[] args)
Returns the list of arguments as space separated string for the command line. |
static String |
getCommandLineArgument(ArrayList<File> files)
Returns the list of file as argument for the command line. |
static String |
getCommandLineArgument(File file)
Returns the file as argument for the command line. |
static ArrayList<File> |
getFiles(String optionInput,
ArrayList<String> fileExtentions)
Returns a list of files as imported from the command line option. |
static String |
getQuoteType()
Returns the quote type to use. |
static ArrayList<String> |
splitInput(String cliInput)
Splits the input of comma separated command line input and returns the results as an arraylist. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String SEPARATOR
Constructor Detail |
---|
public CommandLineUtils()
Method Detail |
---|
public static String getCommandLineArgument(ArrayList<File> files)
files
- the files
public static String concatenate(ArrayList<String> args)
args
- the arguments
public static String concatenate(String[] args)
args
- the arguments
public static String getQuoteType()
public static String getCommandLineArgument(File file)
file
- the file
public static ArrayList<String> splitInput(String cliInput)
cliInput
- the CLI input
public static ArrayList<File> getFiles(String optionInput, ArrayList<String> fileExtentions) throws FileNotFoundException
optionInput
- the command line optionfileExtentions
- the file extensions to be considered
FileNotFoundException
- exception thrown whenever a file is not
found
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |