posted 7 years ago
If I have a malformed url I get a MalformedURLException when calling the constructor of java.net.URL. It would be cleaner if there was a method java.net.URL.isValid(). I haven't found one. Does anyone know of a good alternative? Right now I have my own method that encapsulates the exception throwing but perhaps there is an alternative?
author and iconoclast