home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2009 June / maximum-cd-2009-06.iso / DiscContents / digsby_setup.exe / lib / plugins / researchdriver / res / process.jar / jargs / gnu / CmdLineParser$Option$LongOption.class (.txt) < prev    next >
Encoding:
Java Class File  |  2005-04-09  |  1.2 KB  |  22 lines

  1. package jargs.gnu;
  2.  
  3. import java.util.Locale;
  4.  
  5. public class CmdLineParser$Option$LongOption extends CmdLineParser.Option {
  6.    public CmdLineParser$Option$LongOption(char shortForm, String longForm) {
  7.       super(shortForm, longForm, true);
  8.    }
  9.  
  10.    public CmdLineParser$Option$LongOption(String longForm) {
  11.       super(longForm, true);
  12.    }
  13.  
  14.    protected Object parseValue(String arg, Locale locale) throws CmdLineParser.IllegalOptionValueException {
  15.       try {
  16.          return new Long(arg);
  17.       } catch (NumberFormatException var4) {
  18.          throw new CmdLineParser.IllegalOptionValueException(this, arg);
  19.       }
  20.    }
  21. }
  22.