Code example for ZipFile

Methods: entries

0
        return entryNames;
    } 
 
	public static Enumeration<?> getEntriesEnumeration(File zipFile) throws ZipException,
	            IOException { 
        ZipFile zf = new ZipFile(zipFile);
        return zf.entries();
    } 
 
	public static String getEntryName(ZipEntry entry) throws UnsupportedEncodingException {
        return new String(entry.getName().getBytes(CBSettings.getStringValue(CBSettings.CB_SETTINGS_XML_ENCODING)), "8859_1");
    } 
 
	public static String getEntryComment(ZipEntry entry) throws UnsupportedEncodingException {
        return new String(entry.getComment().getBytes(CBSettings.getStringValue(CBSettings.CB_SETTINGS_XML_ENCODING)), "8859_1");
    } 
 
	private static void zipFile(File resFile, ZipOutputStream zipout,
			String rootPath) throws FileNotFoundException, IOException {
 
		rootPath = rootPath + (rootPath.trim().length() == 0 ? "" : File.separator) + resFile.getName();