code: public static String getPrefixOfFileName(String fileName) {
          int dotIndex = fileName.lastIndexOf(DOT);
          return dotIndex > 0 ? fileName.substring(0, dotIndex) : fileName;
      }
docs: Gets prefix of file name.
  
  @param fileName the file name
  @return the prefix of file name