Here you can find the source of translate(String name, int type)
public static String translate(String name, int type)
//package com.java2s; //License from project: Apache License public class Main { public static String translate(String name, int type) { if (type == 0) { // ???????? name = name.substring(1, name.length() - 1); name = name.replace('/', '.'); return name; } else {/*w w w. ja v a 2 s. co m*/ name = name.replace('.', '/'); name = "/" + name + "/"; return name; } } }