Package pro.johndunlap.getopt
Class DefaultValueParser
- java.lang.Object
-
- pro.johndunlap.getopt.DefaultValueParser
-
- All Implemented Interfaces:
TypeConverter<String>
public class DefaultValueParser extends Object implements TypeConverter<String>
A default implementation of the ValueParser interface.- Author:
- John Dunlap
-
-
Constructor Summary
Constructors Constructor Description DefaultValueParser()
-
-
-
Method Detail
-
getType
public Class<String> getType()
- Specified by:
getTypein interfaceTypeConverter<String>
-
read
public String read(String value) throws ParseException
- Specified by:
readin interfaceTypeConverter<String>- Throws:
ParseException
-
write
public String write(String value) throws ParseException
- Specified by:
writein interfaceTypeConverter<String>- Throws:
ParseException
-
-