public class URLArgumentHandler extends Object implements ArgumentHandler
Constructor and Description |
---|
URLArgumentHandler() |
Modifier and Type | Method and Description |
---|---|
void |
handleArgument(Argument arg,
String form,
String[] parameters)
Ensure that the argument is either a file path or a properly formatted URL.
|
public void handleArgument(Argument arg, String form, String[] parameters) throws UsageException
handleArgument
in interface ArgumentHandler
arg
- argumentform
- form usedparameters
- parameters suppliedUsageException
- when file not found or not a workable URL