|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.martiansoftware.jsap.StringParser
com.martiansoftware.jsap.stringparsers.ByteStringParser
A StringParser for parsing Bytes. The parse() method delegates the actual
parsing to Byte.decode(String).
StringParser,
Byte| Constructor Summary | |
ByteStringParser()
Deprecated. Use getParser() or, even better, JSAP.BYTE_PARSER. |
|
| Method Summary | |
static ByteStringParser |
getParser()
Returns a ByteStringParser. |
Object |
parse(String arg)
Parses the specified argument into a Byte. |
| Methods inherited from class com.martiansoftware.jsap.StringParser |
setUp, tearDown |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ByteStringParser()
getParser() or, even better, JSAP.BYTE_PARSER.
| Method Detail |
public static ByteStringParser getParser()
ByteStringParser.
Convenient access to the only instance returned by
this method is available through
JSAP.BYTE_PARSER.
ByteStringParser.
public Object parse(String arg)
throws ParseException
Byte.decode(String). If Byte throws a
NumberFormatException, it is encapsulated into a ParseException and
re-thrown.
parse in class StringParserarg - the argument to parse
ParseException - if Byte.decode(arg) throws a
NumberFormatException.Byte,
StringParser.parse(String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||