private TreeMap < Integer , Integer > createResourceMap ( FieldMap fieldMap , FixedMeta rscFixedMeta , FixedData rscFixedData ) { TreeMap < Integer , Integer > resourceMap = new TreeMap < Integer , Integer > ( ) ; int itemCount = rscFixedMeta . getAdjustedItemCount ( ) ; for ( int loop = 0 ; loop < itemCount ; loop ++ ) { byte [ ] data = rscFixedData . getByteArrayValue ( loop ) ; if ( data == null || data . length < fieldMap . getMaxFixedDataSize ( 0 ) ) { continue ; } Integer uniqueID = Integer . valueOf ( MPPUtility . getShort ( data , 0 ) ) ; resourceMap . put ( uniqueID , Integer . valueOf ( loop ) ) ; } return ( resourceMap ) ; }
This method maps the resource unique identifiers to their index number within the FixedData block .