class FileUtilities {

    public static String getBasename(File file)
    {
        final String name = file.getName();
        final int ix = name.lastIndexOf('.');
        return ix >= 0 ? name.substring(0, ix) : name;
    }

    private  FileUtilities();

}