Android File Extension Name Get getFileExt(String fileFullName)

Here you can find the source of getFileExt(String fileFullName)

Description

get File Ext

Declaration

public static String getFileExt(String fileFullName) 

Method Source Code

//package com.java2s;

public class Main {

    public static String getFileExt(String fileFullName) {
        int dot = fileFullName.lastIndexOf(".");

        if ((dot > -1) && (dot < fileFullName.length() - 1)) {
            return fileFullName.substring(dot + 1);
        } else {//from  w  w w .  j av a  2  s  . c om
            return null;
        }
    }
}

Related

  1. getExtension(File file, boolean useFirstPeriod, boolean includePeriod)
  2. getExtension(String file)
  3. getExtension(String filename)
  4. getExtensionName(String fileName)
  5. getFileEx(String filePath)
  6. getFileExtByFileName(String fileName)
  7. getFileExtension(String file)
  8. getFileExtension(String fileName)
  9. getFileExtension(String filename)