Code example for URI

0
 
    @Override 
    public int parseArguments(Parameters params) throws CmdLineException { 
        String param = params.getParameter(0); 
        try { 
            setter.addValue(new URI(param)); 
            return 1; 
        } catch (URISyntaxException e) { 
            throw new CmdLineException(owner, Messages.ILLEGAL_OPERAND.format(params.getParameter(-1),param)); 
        } 
    } 
 
    @Override 
    public String getDefaultMetaVariable() { 
        return "URI"; 
    } 
}