public class ByteConverter extends Object implements TypeConverter<Byte>
Byte.parseByte(),
so look there for all its peccadilloes.Byte.parseByte(String)| Constructor and Description |
|---|
ByteConverter() |
| Modifier and Type | Method and Description |
|---|---|
Byte |
convert(String input,
GetOpt options,
OptionSpecification option)
Convert a string into a Byte or null.
|
public Byte convert(String input, GetOpt options, OptionSpecification option)
convert in interface TypeConverter<Byte>input - the input stringoptions - the options set in use (you'll want this for the usage())option - the specific option whose argument we're trying to parsenull if input is null or blank, or a Byte if the string is parseableCommandLineProcessingException - if the parse failsByte.parseByte(String)Copyright © 2017. All rights reserved.