private Number parseNumber ( String string ) { if ( string . length ( ) > 2 && string . charAt ( 0 ) == ' ' && string . charAt ( 1 ) == ' ' ) { return Long . parseLong ( string . substring ( 2 ) , 16 ) ; } return Double . parseDouble ( string ) ; }
Parse numeric string value to a number .