Java Jar Entry constructClassName(JarEntry je)

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

Description

construct Class Name

License

Apache License

Declaration

private static String constructClassName(JarEntry je) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.jar.JarEntry;

public class Main {
    private static String constructClassName(JarEntry je) {
        int n = je.getName().length() - ".class".length();
        return je.getName().replace("/", ".").substring(0, n);
    }/*  w ww.j a v  a2s.  c  om*/
}

Related

  1. getJarEntry(JarFile file, String entryName)
  2. hasClassEntry(JarFile jarFile, String className)
  3. inClasspath(Collection classpath, JarEntry entry)
  4. isJavaClass(JarEntry je)