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

@param fileName the file name
@return the prefix of file name