class XLogUtils {

    static String getClassNameSection(String className, int section) {
        int sectionSize = getClassNameSectionSize(className);

        if (className == null || section <= 0 || section >= sectionSize) {
            return className;
        }

        int index = 0;
        while (section > 0) {
            index++;
            if ('.' == className.charAt(index)) {
                section--;
            }
        }

        return className.substring(0, index);
    }

    private  XLogUtils();

}