Class LongStringParser

    • Constructor Detail

      • LongStringParser

        public LongStringParser()
        Deprecated.
        Use getParser() or, even better, JSAP.LONG_PARSER.
        Creates a new LongStringParser.
    • Method Detail

      • parse

        public java.lang.Object parse​(java.lang.String arg)
                               throws ParseException
        Parses the specified argument into a Long. This method delegates the parsing to Long.decode(arg). If Long.decode() throws a NumberFormatException, it is encapsulated into a ParseException and re-thrown.
        Specified by:
        parse in class StringParser
        Parameters:
        arg - the argument to parse
        Returns:
        a Long object with the value contained in the specified argument.
        Throws:
        ParseException - if Long.decode(arg) throws a NumberFormatException.
        See Also:
        Long, StringParser.parse(String)