public class URIConverter extends AbstractBaseConverter<URI>
String
into a URI
.
For a description of the format, see URI.URI(String)
.
Example:
@Parameter(names = { "--uRI" }, converter = URIConverter.class)
private URI uri;
URI
,
URI.URI(String)
failOnNull, targetClass
Constructor and Description |
---|
URIConverter(String optionName)
Constructs a converter.
|
Modifier and Type | Method and Description |
---|---|
protected URI |
convertImpl(String value)
Converts a value.
|
convert, getErrorString, isSingle, newParameterException, newParameterException, split, toInt, toURI
public URIConverter(String optionName)
optionName
- The option name, may be null.protected URI convertImpl(String value) throws URISyntaxException
AbstractBaseConverter
convertImpl
in class AbstractBaseConverter<URI>
value
- the value to convertURISyntaxException
Copyright © 2016-2016 Gary Gregory. All Rights Reserved.
Use is subject to The Apache Software License, Version 2.0