Code example for ZipEntry

Methods: isDirectory

0
            if(null == entry){
                Log.e("ShadingZen", "Given compressed resource location was not found:" + location);
                return false; 
            } 
 
            if(entry.isDirectory()){
                /*File file = new File(location); 
                String filename = file.getName(); 
 
                if(manager.isPVRCompressedTexturesSupported()) 
                   return loadCompressedPVRCompressedTextureSet(manager, zipfile, filename, id, (BitmapTexture.Parameters) params); 
                else 
                   return false; */ 
                return false; 
            } else{ 
                return loadTextureFromInputStream(context, manager, id, params, zipfile.getInputStream(entry));
            } 
        } catch(IOException ex){
            Log.e("ShadingZen", "Error getting input stream from zip file:" + ex.getMessage(), ex);
            return false; 
        }