Code example for ZipFile

Methods: entries

0
	 * @throws IOException 
	 *             IO²Ù×÷ÓÐÎóʱÅ׳ö 
	 */ 
	public static Enumeration<?> getEntriesEnumeration(File zipFile)
			throws ZipException, IOException { 
		ZipFile zf = new ZipFile(zipFile);
		return zf.entries();
 
	} 
 
	/** 
	 * È¡µÃѹËõÎļþ¶ÔÏóµÄ×¢ÊÍ 
	 *  
	 * @param entry 
	 *            ѹËõÎļþ¶ÔÏó 
	 * @return ѹËõÎļþ¶ÔÏóµÄ×¢ÊÍ 
	 * @throws UnsupportedEncodingException 
	 */ 
	public static String getEntryComment(ZipEntry entry)
			throws UnsupportedEncodingException { 
		return new String(entry.getComment().getBytes("GB2312"), "8859_1");