|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.schmant.support.io.ArgumentList
public class ArgumentList
Objects of this class is used for building an command and argument list that
is used for running an external command. The add(java.lang.String)
method is responsible for quoting and escaping the contents of the string as
necessary.
Constructor Summary | |
---|---|
ArgumentList(boolean quoteStringsWSpaces)
Create the argument list. |
Method Summary | |
---|---|
ArgumentList |
add(String arg)
Add one argument to the list. |
ArgumentList |
addAll(ArgumentList al)
Add all arguments in the supplied argument list. |
ArgumentList |
addAll(Collection<String> c)
Add a collection of arguments to the list. |
List<String> |
getArgumentList()
Get the argument list. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ArgumentList(boolean quoteStringsWSpaces)
quoteStringsWSpaces
- Should an added string containing spaces be
quoted?Method Detail |
---|
public ArgumentList add(String arg)
arg
- The argument. null
arguments are allowed.
this
public ArgumentList addAll(Collection<String> c)
c
- The argument collection.
this
public ArgumentList addAll(ArgumentList al)
al
- The argument list to add arguments from.
this
public List<String> getArgumentList()
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |