@Test public void testPathEncode() throws Exception { assertEquals(Urls.encode("name_with/%!"), "name_with%2F%25%21"); }
@SuppressWarnings("deprecation") public static String encode(String text) { return URLEncoder.encode(text); }
Urls { @SuppressWarnings("deprecation") public static String encode(String text) { return URLEncoder.encode(text); } }
Urls { @SuppressWarnings("deprecation") public static String encode(String text) { return URLEncoder.encode(text); }  }
Urls { @SuppressWarnings("deprecation") public static String encode(String text) { return URLEncoder.encode(text); }  static Function<String,URI> stringToUriFunction(); static Function<String,URL> stringToUrlFunction(); static final URL toUrl(@Nullable String url); static final URL toUrl(@Nullable URI uri); static final URI toUri(@Nullable String uri); static final URI toUri(@Nullable URL url); static boolean isUrlWithProtocol(String x); static String mergePaths(String ...items); @SuppressWarnings("deprecation") static String encode(String text); @SuppressWarnings("deprecation") static String decode(String text); static String getProtocol(String url); static String getBasename(String url); static boolean isDirectory(String fileUrl); static File toFile(String fileUrl); static String asDataUrlBase64(String data); static String asDataUrlBase64(MediaType type, byte[] bytes); }
Urls { @SuppressWarnings("deprecation") public static String encode(String text) { return URLEncoder.encode(text); }  static Function<String,URI> stringToUriFunction(); static Function<String,URL> stringToUrlFunction(); static final URL toUrl(@Nullable String url); static final URL toUrl(@Nullable URI uri); static final URI toUri(@Nullable String uri); static final URI toUri(@Nullable URL url); static boolean isUrlWithProtocol(String x); static String mergePaths(String ...items); @SuppressWarnings("deprecation") static String encode(String text); @SuppressWarnings("deprecation") static String decode(String text); static String getProtocol(String url); static String getBasename(String url); static boolean isDirectory(String fileUrl); static File toFile(String fileUrl); static String asDataUrlBase64(String data); static String asDataUrlBase64(MediaType type, byte[] bytes);  }