@Test public void testAsUrl() throws Exception { URL url = FileTools.asUrl("http: assertEquals("http: assertNull(FileTools.asUrl("/not/a/url")); }
public static URL asUrl(String url) { try { return new URL(url); } catch (MalformedURLException e) { return null; } }
FileTools { public static URL asUrl(String url) { try { return new URL(url); } catch (MalformedURLException e) { return null; } } }
FileTools { public static URL asUrl(String url) { try { return new URL(url); } catch (MalformedURLException e) { return null; } }  }
FileTools { public static URL asUrl(String url) { try { return new URL(url); } catch (MalformedURLException e) { return null; } }  static String replaceIllegalCharacters(String name, String replacement); static URL asUrl(String url); static String getExtension(String name); static String getParent(File file); }
FileTools { public static URL asUrl(String url) { try { return new URL(url); } catch (MalformedURLException e) { return null; } }  static String replaceIllegalCharacters(String name, String replacement); static URL asUrl(String url); static String getExtension(String name); static String getParent(File file);  }