java.net.URL Question

L

Lee H

Hi,
Is there an easy way of verifying that a given string is a valid URL/URI
(In other words, that it is according to the syntax specified in
rfc2396. I don't mean to check if the resource exists, or even if the
host exist, just that it is syntactically valid).

(Constructors of java.net.URL throw MalformedURLException only if the
protocol is unknown).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,015
Latest member
AmbrosePal

Latest Threads

Top