Here you can find the source of getExtension(final ZipEntry ze)
public static String getExtension(final ZipEntry ze)
//package com.java2s; import java.util.zip.ZipEntry; public class Main { public static String getExtension(final ZipEntry ze) { return getExtension(ze.getName()); }/*from www . ja v a2 s . c o m*/ public static String getExtension(final String fileName) { return fileName.substring(fileName.lastIndexOf(".") + 1) .toLowerCase(); } }