Code example for ZipEntry

Methods: getName, isDirectory

0
            } 
            return mNextZipEntry != null;
        } 
 
        private boolean isValid(ZipEntry zipEntry) {
            return (!zipEntry.isDirectory() && 
                    hasCleartextSuffix(zipEntry.getName()));
        } 
         
        public SourceReader next() throws IOException { 
            final String name = mNextZipEntry.getName();
            mNextZipEntry = null;
            return new SourceReader(name, new InputStreamReader(mZipInputStream));
        } 
    } 
 
    public static boolean hasCleartextSuffix(String name) {
        name = name.toLowerCase();
        return name.endsWith(".gpx") || name.endsWith(".loc");
    }