Java Jar Entry trimEntryName(JarEntry je)

Here you can find the source of trimEntryName(JarEntry je)

Description

trim Entry Name

License

Open Source License

Declaration

private static String trimEntryName(JarEntry je) 

Method Source Code

//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*/
}

Related

  1. inClasspath(Collection classpath, JarEntry entry)
  2. isJavaClass(JarEntry je)
  3. isJavaLibrary(JarEntry entry)
  4. isNativeLibrary(JarEntry entry)
  5. parseSimpleName(JarEntry entry)