Code example for ZipEntry

Methods: getName

0
			return false; 
		} 
				 
		@Override 
		protected void processEntry(ZipEntry entry) {
			String entryName = entry.getName();
			if (FileUtils.isHidden(entryName)) {
				return; 
			} 
			String extension = FileUtils.getFileExtension(entryName);
			if (FileUtils.isImage(extension)) {
				final String key = this.addLeadingZeroes(entryName);
				TreeMap<String, String> bucket = classify(entryName);
				bucket.put(key, entryName);
			} else if (FileUtils.isVideo(extension)) {
				String[] split = entryName.split("\\.");
				if (split.length > 1) {
					String numberSuffix = split[split.length - 2];
					Pattern pattern = Pattern.compile("\\d+$");
					Matcher matcher = pattern.matcher(numberSuffix);
					if (matcher.find()) {
						numberSuffix = matcher.group();
						int index = Integer.parseInt(numberSuffix);
						File file = extract(entry, entry.getName());
						if (file != null) {
							ACVScreen screen = getOrCreateACVScreen(index);
							screen.setVideoFile(file);
						} 
					} 
				} 
			} else if (FileUtils.isAudio(extension) || FileUtils.isFont(entryName) || FileUtils.isWebpage(entryName)) {
				final File file = extract(entry, entry.getName());
				ACVComic.this.addFile(file.getName(), file);
			} 
		} 
		 
		protected void processMetadata(ZipEntry entry) {