code: public static String basename(String path)
    {
      return path != null ? basename(new File(path)) : null;
    }
docs: Return base name for given file path. Returns null if given path parameter is null.
  
  @param path file path string.
  @return file name without extension or null.