Here you can find the source of toPath(String pathName)
public static String[] toPath(String pathName)
//package com.java2s; //License from project: Open Source License public class Main { /**/*from w w w . j ava 2 s .c o m*/ * Translates the given identifier path name into a corresponding * sequence of identifiers. */ public static String[] toPath(String pathName) { return pathName == null ? null : pathName.split("\\.", -1); } }