public static String[] splitext(String filePath) {
		if (null == filePath) {
			throw new NullPointerException("filePath值为null");
		}

		filePath = separatorConvert(filePath);
		int lastSepIndex = filePath.lastIndexOf(separator);
		String fileDirPath = "";
		String extsepName = "";
		String fileName = filePath;

		if (lastSepIndex >= 0) {
			fileDirPath = filePath.substring(0, lastSepIndex + 1);
			fileName = filePath.substring(lastSepIndex + 1, filePath.length());
		}

		if (fileName.lastIndexOf(extsep) > 0) {
			fileName = fileName.substring(0, fileName.lastIndexOf(extsep));
			extsepName = filePath.substring(filePath.lastIndexOf(extsep),
					filePath.length());
		}

		return new String[] { fileDirPath, fileName, extsepName };
	}