java.lang.Object
cvebrowser.util.CommandLine
- public final class CommandLine
- extends java.lang.Object
CommandLine - helper class used to process command line parameters
- Version:
- 0.2 - 10/02/2003
_bundle
private static final java.util.ResourceBundle _bundle
DEFAULT_LANGUAJE
public static final java.lang.String DEFAULT_LANGUAJE
- Default languaje to use on the command line applications
- See Also:
- Constant Field Values
DEFAULT_COUNTRY
public static final java.lang.String DEFAULT_COUNTRY
- Default country to use on the command line applications
- See Also:
- Constant Field Values
CommandLine
public CommandLine()
checkAllTheParameters
public static boolean checkAllTheParameters(int currentArgCount_,
int expectedParams_,
boolean exceptionOnError_)
throws java.lang.IllegalArgumentException
- Validate if the required number of arguments is present. For that
- Provide the current number of required arguments
- The expected number of arguments.
Probably this method will be only usefull if all the arguments are required.
- Since:
- 0.1
setDefaultLanguaje
public static void setDefaultLanguaje(java.lang.String languaje_,
java.lang.String country_)
- Sets the default languaje for the given JVM at runtime.
- Since:
- 0.1
clone
public final java.lang.Object clone()
throws java.lang.CloneNotSupportedException
- Make this class uncloneable. Anyone who wants to use this class must use the constructor.
writeObject
private final void writeObject(java.io.ObjectOutputStream out_)
throws java.io.IOException
- Make this class unserializable. Any attempt to serialize will throw an exception.
readObject
private final void readObject(java.io.ObjectInputStream in_)
throws java.io.IOException
- Make this class undeserializeable. Throw an exception if this method is ever called.