private void readFooter ( RandomAccessInputStream raf , int location ) throws IOException { raf . seek ( location ) ; byte [ ] foot = new byte [ FOOT_SIZE ] ; if ( raf . read ( foot ) != FOOT_SIZE ) { throw new IOException ( "Error encountered reading id3v2 footer" ) ; } majorVersion = ( int ) foot [ 3 ] ; if ( majorVersion <= NEW_MAJOR_VERSION ) { minorVersion = ( int ) foot [ 4 ] ; unsynchronisation = ( foot [ 5 ] & 0x80 ) != 0 ; extended = ( foot [ 5 ] & 0x40 ) != 0 ; experimental = ( foot [ 5 ] & 0x20 ) != 0 ; footer = ( foot [ 5 ] & 0x10 ) != 0 ; tagSize = Helpers . convertDWordToInt ( foot , 6 ) ; } }
Extracts the information from the footer .