private static int read2ByteIntegerRecordValue ( DBaseFileField field , int nrecord , int nfield , byte [ ] rawData , int rawOffset , OutputParameter < Integer > value ) throws IOException { final short rawNumber = EndianNumbers . toLEShort ( rawData [ rawOffset ] , rawData [ rawOffset + 1 ] ) ; try { value . set ( new Integer ( rawNumber ) ) ; return 2 ; } catch ( NumberFormatException exception ) { throw new InvalidRawDataFormatException ( nrecord , nfield , Short . toString ( rawNumber ) ) ; } }
Read a 2 BYTE INTEGER record value .