Here you can find the source of resolveFileNameNoExt(URI uri)
public static String resolveFileNameNoExt(URI uri)
//package com.java2s; //License from project: Apache License import java.net.URI; public class Main { public static String resolveFileNameNoExt(URI uri) { String fileName = resolveFileName(uri); return fileName.substring(0, fileName.lastIndexOf('.')); }/*from w w w . ja v a 2 s . co m*/ public static String resolveFileName(URI uri) { String url = uri.toString(); return url.substring(url.lastIndexOf('/') + 1, url.length()); } }