public static String path2dot(String path)
  {
    return path != null ? path.replaceAll(SEPARATOR_CHAR_REX, ".") : null;
  }
public static String path2dot ( String path ) { return path != null ? path . replaceAll ( SEPARATOR_CHAR_REX , "." ) : null ; }
Convert a file path to a dot separated list of words. This utility is handy, for example, on converting file paths
to Java packages, provided file path contains Java valid characters. Returns null if <code>path</code> parameter is
null.

@param path file path to convert.
@return dot separated list of words or null.