private void parseResourceTable ( ) throws IOException { if ( resourceTableParsed ) { return ; } resourceTableParsed = true ; byte [ ] data = getFileData ( AndroidConstants . RESOURCE_FILE ) ; if ( data == null ) { // if no resource entry has been found, we assume it is not needed by this APK this . resourceTable = new ResourceTable ( ) ; this . locales = Collections . emptySet ( ) ; return ; } ByteBuffer buffer = ByteBuffer . wrap ( data ) ; ResourceTableParser resourceTableParser = new ResourceTableParser ( buffer ) ; resourceTableParser . parse ( ) ; this . resourceTable = resourceTableParser . getResourceTable ( ) ; this . locales = resourceTableParser . getLocales ( ) ; }
parse resource table .