public static int parseInt ( final byte [ ] buffer , final int start , final int length , final int radix ) throws NumberFormatException { if ( length == 0 ) throw new NumberFormatException ( STRING . deser ( buffer , start , length ) ) ; if ( buffer [ start ] == ' ' ) { if ( length == 1 ) throw new NumberFormatException ( STRING . deser ( buffer , start , length ) ) ; return parseInt ( buffer , start + 1 , length - 1 , radix , false ) ; } return parseInt ( buffer , start , length , radix , true ) ; }
Parse an ascii int from a raw buffer .