Here you can find the source of normalize(URI input)
public static URI normalize(URI input)
//package com.java2s; import java.io.*; import java.net.*; public class Main { public static URI normalize(URI input) { URI uri = null;/*from w w w . ja v a2 s. com*/ if (input != null) { uri = input.normalize(); if ("file".equals(uri.getScheme())) { try { uri = new File(uri).getCanonicalFile().toURI(); } catch (IOException e) { uri = new File(uri).toURI(); } } } return uri; } }