/** * Gets the file (type) extension of the given file. * A file extension is the part of the filename, after the last occurence * of a period {@code '.'}. * If the filename contains no period, {@code null} is returned. * * @param pFile the file * @return the extension (type) of the file, or {@code null} */ public static String getExtension(final File pFile) { return getExtension0(pFile.getName()); }
/** * Gets the file (type) extension of the given file. * A file extension is the part of the filename, after the last occurence * of a period {@code '.'}. * If the filename contains no period, {@code null} is returned. * * @param pFileName the full filename with extension * @return the extension (type) of the file, or {@code null} */ public static String getExtension(final String pFileName) { return getExtension0(getFilename(pFileName)); }
/** * Gets the file (type) extension of the given file. * A file extension is the part of the filename, after the last occurence * of a period {@code '.'}. * If the filename contains no period, {@code null} is returned. * * @param pFile the file * @return the extension (type) of the file, or {@code null} */ public static String getExtension(final File pFile) { return getExtension0(pFile.getName()); }
/** * Gets the file (type) extension of the given file. * A file extension is the part of the filename, after the last occurence * of a period {@code '.'}. * If the filename contains no period, {@code null} is returned. * * @param pFile the file * @return the extension (type) of the file, or {@code null} */ public static String getExtension(final File pFile) { return getExtension0(pFile.getName()); }
/** * Gets the file (type) extension of the given file. * A file extension is the part of the filename, after the last occurence * of a period {@code '.'}. * If the filename contains no period, {@code null} is returned. * * @param pFileName the full filename with extension * @return the extension (type) of the file, or {@code null} */ public static String getExtension(final String pFileName) { return getExtension0(getFilename(pFileName)); }
/** * Gets the file (type) extension of the given file. * A file extension is the part of the filename, after the last occurence * of a period {@code '.'}. * If the filename contains no period, {@code null} is returned. * * @param pFileName the full filename with extension * @return the extension (type) of the file, or {@code null} */ public static String getExtension(final String pFileName) { return getExtension0(getFilename(pFileName)); }