public static int load ( String i , int defaultValue , boolean stripNonNumeric ) { try { i = stripNonNumeric ? StringUtils . stripNonNumeric ( i , true , true ) : i ; defaultValue = Integer . parseInt ( i ) ; } catch ( Exception ignored ) { } return defaultValue ; }
Loads an int from a String .