@ SuppressWarnings ( "checkstyle:magicnumber" ) private static int read4ByteIntegerRecordValue ( DBaseFileField field , int nrecord , int nfield , byte [ ] rawData , int rawOffset , OutputParameter < Long > value ) throws IOException { final int rawNumber = EndianNumbers . toLEInt ( rawData [ rawOffset ] , rawData [ rawOffset + 1 ] , rawData [ rawOffset + 2 ] , rawData [ rawOffset + 3 ] ) ; try { value . set ( new Long ( rawNumber ) ) ; return 4 ; } catch ( NumberFormatException exception ) { throw new InvalidRawDataFormatException ( nrecord , nfield , Long . toString ( rawNumber ) ) ; } }
Read a 4 BYTE INTEGER record value .