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();
Stop searching for code, let great code find you!  Add Codota to your java IDE