java D:\code\cpp\data\frames_Src\001.jpg

得到一个字符串,如:strFileFullName = "D:\code\cpp\data\frames_Src\001.jpg"
怎样得到:
strFilePath = "D:\code\cpp\data\frames_Src"
strFileName = "001.jpg"

 String strFileFullName = "D:\\code\\cpp\\data\\frames_Src\\001.jpg";
        int pos = strFileFullName.lastIndexOf("\\");
        String strFilePath = strFileFullName.substring(0,pos);
        String strFileName = strFileFullName.substring(pos+1,strFileFullName.length());