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