Code example for URI

Methods: getPath

	 * To override to build resolvers to specific locations using a prefix for example. 
	protected String getPath(URI uri) {
		return uri.getPath();
	public boolean isDirectory(URI uri) {
		return new File(getPath(uri)).isDirectory();
	public boolean isFile(URI uri) {
		return new File(getPath(uri)).isFile();
	public long lastModified(URI uri) {
		return new File(getPath(uri)).lastModified();
Experience pair programming with AI  Get Codota for Java