Java File Extension Name Extract extractFileExt(String _sFilePathName)

Here you can find the source of extractFileExt(String _sFilePathName)

Description

extract File Ext

License

Open Source License

Declaration

public static String extractFileExt(String _sFilePathName) 

Method Source Code

//package com.java2s;

public class Main {
    public static String extractFileExt(String _sFilePathName) {
        int nPos = _sFilePathName.lastIndexOf('.');
        return nPos < 0 ? "" : _sFilePathName.substring(nPos + 1);
    }//www.ja v  a2s .  c  om
}

Related

  1. extractFileExt(String filePath)
  2. ExtractFileExtension(String file_name)
  3. extractFileExtension(String filename)
  4. extractFileExtension(String filename)