Here you can find the source of toClassName(String resourceName)
public static String toClassName(String resourceName)
//package com.java2s; //License from project: Common Public License public class Main { public static String toClassName(String resourceName) { return slashesToDots(resourceName.substring(0, resourceName.lastIndexOf("."))); }//from w w w .j a v a 2s . c om public static String slashesToDots(String resourceName) { return resourceName.replace('/', '.').replace('\\', '.'); } }