Beispiel #1
0
 public static boolean isUsableURI(URI uri) {
   try {
     java.net.URL u = new URL(uri.toString());
   } catch (MalformedURLException e) {
     return false;
   }
   return !(uri.getPath() == null || uri.getPath().length() == 0);
 }