Code example for ZipEntry

Methods: getComment

0
	 * @return ѹËõÎļþ¶ÔÏóµÄ×¢ÊÍ 
	 * @throws UnsupportedEncodingException 
	 */ 
	public static String getEntryComment(ZipEntry entry)
			throws UnsupportedEncodingException { 
		return new String(entry.getComment().getBytes("GB2312"), "8859_1");
	} 
 
	/** 
	 * È¡µÃѹËõÎļþ¶ÔÏóµÄÃû³Æ 
	 *  
	 * @param entry 
	 *            ѹËõÎļþ¶ÔÏó 
	 * @return ѹËõÎļþ¶ÔÏóµÄÃû³Æ 
	 * @throws UnsupportedEncodingException 
	 */ 
	public static String getEntryName(ZipEntry entry)
			throws UnsupportedEncodingException { 
		return new String(entry.getName().getBytes("GB2312"), "8859_1");
	} 
Stop searching for code, let great code find you!  Add Codota to your java IDE