org.codehaus.jackson.io
Class NumberInput
java.lang.Object
org.codehaus.jackson.io.NumberInput
public final class NumberInput
- extends Object
Method Summary |
static int |
parseInt(char[] digitChars,
int offset,
int len)
Fast method for parsing integers that are known to fit into
regular 32-bit signed int type. |
static long |
parseLong(char[] digitChars,
int offset,
int len)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NumberInput
public NumberInput()
parseInt
public static final int parseInt(char[] digitChars,
int offset,
int len)
- Fast method for parsing integers that are known to fit into
regular 32-bit signed int type. This means that length is
between 1 and 9 digits (inclusive)
Note: public to let unit tests call it
parseLong
public static final long parseLong(char[] digitChars,
int offset,
int len)
Apache License, Version 2.0