Non, il me semble que la r�ponse donn�e est correct :
try {
URL url = new URL("mon url � v�rifier");
} catch (MalformedURLExceptionCreates ex) {
// mon url est pas bonne.
}
----- Original Message -----
From: "MARQUES D ext OCISI" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 31, 2003 1:29 PM
Subject: RE: URL
> oui je connais, mais �a ne fait pas ce que je demande...
> ce constructeur prends lui m�me en param�tre un objet URL (on se mord la
> queue !) et une spec RFC sur les urls.
>
> -----Message d'origine-----
> De : Anthony Muller [mailto:[EMAIL PROTECTED]]
> Envoy� : vendredi 31 janvier 2003 13:29
> � : '[EMAIL PROTECTED]'
> Objet : RE: URL
>
>
> http://java.sun.com/j2se/1.3/docs/api/
>
> URL
> public URL(String spec)
> throws MalformedURLExceptionCreates a URL object from the String
> representation.
> This constructor is equivalent to a call to the two-argument constructor
> with a null first argument.
>
> Parameters:
> spec - the String to parse as a URL.
> Throws:
> MalformedURLException - If the string specifies an unknown protocol.
> See Also:
> URL(java.net.URL, java.lang.String)
>
>
>
> -----Message d'origine-----
> De : MARQUES D ext OCISI [mailto:[EMAIL PROTECTED]]
> Envoy� : vendredi 31 janvier 2003 13:15
> � : Java Mailing List
> Objet : URL
>
>
> bonjour � tous,
> connaissez vous une classe de l'api Java qui permette de v�rifier � partir
> d'une chaine repr�sentant une URL, si l'URL repr�sent� est bien form�e ?
> merci
>
>