Android Hex String Create pathExtension(String fileName)

Here you can find the source of pathExtension(String fileName)

Description

path Extension

Declaration

public static String pathExtension(String fileName) 

Method Source Code

//package com.java2s;

public class Main {

    public static String pathExtension(String fileName) {
        int point = fileName.lastIndexOf('.');
        int length = fileName.length();
        if (point == -1 || point == length - 1) {
            return "";
        } else {/*from  ww w  .j  av a 2s . c  o  m*/
            return fileName.substring(point + 1, length);
        }
    }
}

Related

  1. getHexString(int[] b, String splitString)
  2. getHexString(int i)
  3. isHex(String sampleData)
  4. isHexStringChar(char c)
  5. FileNamePathExtension(String filename)
  6. hexStringToBytes(String hexString)
  7. appendHex(StringBuffer stringbuffer, byte byte0)
  8. toHexString(char achar0)
  9. decodeHexStr(final String str)