code: public static String getBaseName(String fileName) {
          if (fileName == null)
              return null;
  
          String[] tokens = split(fileName);
          return tokens[0];
      }
docs: Gets the base filename without the extension but includes
  the path if {@code fileName} includes path.
  
  @param fileName The file name to parse.
  @return The base name of the file.