Newer
Older
EMS-WEB-3.0 / src / main / java / com / casic / accessControl / xls / Util.java
wxn on 9 Aug 2016 441 bytes first commit
package com.casic.accessControl.xls;

/**
 * Created by Administrator on 2015/9/1.
 */
public class Util {
    public static String getPostfix(String path) {
        if (path == null || Common.EMPTY.equals(path.trim())) {
            return Common.EMPTY;
        }
        if (path.contains(Common.POINT)) {
            return path.substring(path.lastIndexOf(Common.POINT) + 1, path.length());
        }
        return Common.EMPTY;
    }
}