Here you can find the source of trimEntryName(JarEntry je)
private static String trimEntryName(JarEntry je)
//package com.java2s; //License from project: Open Source License import java.util.jar.*; public class Main { private static String trimEntryName(JarEntry je) { String[] s = je.getName().toLowerCase().replace(".htm", "") .split("/"); return s[s.length - 1]; }/*from w ww . jav a2 s. co m*/ }