URL separator constant?

Hi all,Like for OS dependent file separator we have a constant in java.io.File (File.separator). Do we have any constant for URL separator (ie for '/')?Regards,Gaurav Daga
[201 byte] By [gauravda] at [2007-10-3 3:21:11]
# 1
To my knoledge the format of a URL is a global standerd. Not something decided by the OS vendors. So it should be always "/"
LRMKa at 2007-7-14 21:13:26 > top of Java-index,Java Essentials,Java Programming...
# 2

If I recall correctly, the idea that the path part of the URL maps to a filesystem path is an implementation detail, not covered in the protocol. So it might not map to a filesystem at all; it could map to an LDAP directory or some transient data structure in memory or it might not exist at all. There's no requirement that there even be a path part to the URL.

However I believe that the standard specifies that "/" (and not, say, "\") be used to separate the transfer type from the server&port and the server&port from the local identifier (which may use additional "/" characters).

I believe there's an RFC giving the standard.Use Google to find it.

paulcwa at 2007-7-14 21:13:26 > top of Java-index,Java Essentials,Java Programming...
# 3
Thanks both of you for your reply!Well I was searching for any Constant defined in the Standrd library classes. Well I think it isn't there.Anyways Thanks for your reply.Cheers,Gaurav Daga
gauravda at 2007-7-14 21:13:26 > top of Java-index,Java Essentials,Java Programming...
# 4
It isn't there because it is fixed at '/' by the RFC.
ejpa at 2007-7-14 21:13:26 > top of Java-index,Java Essentials,Java Programming...