Android File Extension Name Get getSuffix(String f)

Here you can find the source of getSuffix(String f)

Description

get Suffix

Declaration

public static String getSuffix(String f) 

Method Source Code

//package com.java2s;

public class Main {
    public static String getSuffix(String f) {
        int idx = f.lastIndexOf('.');
        if (idx > -1) {
            return f.substring(f.lastIndexOf('.') + 1);
        }/*from w  ww.  j  a  v a2  s  .  c  om*/
        return null;
    }
}

Related

  1. getFileExtensionFromSource(byte[] picHeader)
  2. getFileExtensionFromUrl(String url)
  3. getFilenameExtension(String path)
  4. getNameMinusExtension(File file)
  5. getPathExtension(final String path)
  6. hasExtension(String filename, String extension)
  7. indexOfExtension(String filename)
  8. isValidFileExtension(String extension)
  9. parseFileExtension(String filename)