Class ShortStringParser

java.lang.Object
com.martiansoftware.jsap.StringParser
com.martiansoftware.jsap.stringparsers.ShortStringParser

public class ShortStringParser extends StringParser
A StringParser for parsing Shorts. The parse() method delegates the actual parsing to Short.decode(String). If Short.decode() throws a NumberFormatException, it is encapsulated in a ParseException and re-thrown.
Author:
Marty Lamb
See Also:
  • Constructor Details

    • ShortStringParser

      public ShortStringParser()
      Deprecated.
      Use getParser() or, even better, JSAP.SHORT_PARSER.
      Creates a new ShortStringParser.
  • Method Details