Here you can find the source of className(String classFile, String pre)
public static String className(String classFile, String pre)
//package com.java2s; //License from project: Open Source License public class Main { public static String className(String classFile, String pre) { String objStr = classFile.replaceAll("\\\\", "/"); return objStr.replaceAll("/", "."); }//from w w w . ja v a2 s. c o m }