/** * Gets the file name of the given file, without the extension (type). * A file extension is the part of the filename, after the last occurence * of a period {@code '.'}. * If the filename contains no period, {@code pFile.getName()} is returned. * * @param pFile the file * @return the base name of the file */ public static String getBasename(final File pFile) { return getBasename0(pFile.getName()); }
/** * Gets the file name of the given file, without the extension (type). * A file extension is the part of the filename, after the last occurence * of a period {@code '.'}. * If the filename contains no period, the complete file name is returned * (same as {@code pFileName}, if the string contains no path elements). * * @param pFileName the full filename with extension * @return the base name of the file */ public static String getBasename(final String pFileName) { return getBasename0(getFilename(pFileName)); }
/** * Gets the file name of the given file, without the extension (type). * A file extension is the part of the filename, after the last occurence * of a period {@code '.'}. * If the filename contains no period, {@code pFile.getName()} is returned. * * @param pFile the file * @return the base name of the file */ public static String getBasename(final File pFile) { return getBasename0(pFile.getName()); }
/** * Gets the file name of the given file, without the extension (type). * A file extension is the part of the filename, after the last occurence * of a period {@code '.'}. * If the filename contains no period, {@code pFile.getName()} is returned. * * @param pFile the file * @return the base name of the file */ public static String getBasename(final File pFile) { return getBasename0(pFile.getName()); }
/** * Gets the file name of the given file, without the extension (type). * A file extension is the part of the filename, after the last occurence * of a period {@code '.'}. * If the filename contains no period, the complete file name is returned * (same as {@code pFileName}, if the string contains no path elements). * * @param pFileName the full filename with extension * @return the base name of the file */ public static String getBasename(final String pFileName) { return getBasename0(getFilename(pFileName)); }
/** * Gets the file name of the given file, without the extension (type). * A file extension is the part of the filename, after the last occurence * of a period {@code '.'}. * If the filename contains no period, the complete file name is returned * (same as {@code pFileName}, if the string contains no path elements). * * @param pFileName the full filename with extension * @return the base name of the file */ public static String getBasename(final String pFileName) { return getBasename0(getFilename(pFileName)); }