Checks if the specified string url is a valid URL. @param url The provided URL. @return Whether the specified url is a valid URL.
(String url)
| 82 | * @return Whether the specified url is a valid {@link URL}. |
| 83 | */ |
| 84 | public static boolean checkUrl(String url) { |
| 85 | try { |
| 86 | return new URL(url) != null; |
| 87 | } catch (IOException e) { |
| 88 | return false; |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | /** |
| 93 | * Checks if the specified string is a valid {@link java.awt.Color}. |
no outgoing calls
no test coverage detected