Sometimes it's better to use own simple parser because these are correct URLs due to URI constructor:
http://1:2:3:4:5
http://@@@@@@@@@@@@@@
http://::::::::::::::::::::::
http://////
http::::
aa:://
!!!!!!!!!!!!!!
?
Everybody can check:
<pre>
import java.net.*;
class a
{
public static void main( String[] args ) throws java.net.URISyntaxException
{
URI u = new URI( args[ 0 ] );
return;
}
}
</pre>