private static int readNumberRecordValue ( DBaseFileField field , int nrecord , int nfield , byte [ ] rawData , int rawOffset , OutputParameter < Double > value ) throws IOException { final String buffer = new String ( rawData , rawOffset , field . getLength ( ) ) ; try { final String b = buffer . trim ( ) ; if ( b != null && b . length ( ) > 0 ) { value . set ( new Double ( b ) ) ; return field . getLength ( ) ; } } catch ( NumberFormatException e ) { // } throw new InvalidRawDataFormatException ( nrecord , nfield , buffer ) ; }
Read a NUMBER record value .