JSON
Version 1.0

org.codehaus.jackson.io
Class NumberInput

java.lang.Object
  extended by org.codehaus.jackson.io.NumberInput

public final class NumberInput
extends Object


Constructor Summary
NumberInput()
           
 
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
 

Constructor Detail

NumberInput

public NumberInput()
Method Detail

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)

JSON
Version 1.0

Apache License, Version 2.0