de.intarsys.tools.number
Class NumberParser
java.lang.Object
de.intarsys.tools.number.NumberParser
public class NumberParser
- extends Object
A parser able to read a definition of numbers.
The parser supports single numbers, enumeration of numbers and intervals.
S ::= NumberString
NumberString ::= ( Number | Interval) [ ";" (Number | Interval) ]*
Interval ::= Number "-" Number
Number ::= a valid number literal
parse
public static NumberWrapper parse(String numberstring)
throws IOException
- Throws:
IOException
getChar
public int getChar()
throws IOException
- Throws:
IOException
Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.