This is the mail archive of the kawa@sourceware.org mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: New Kawa "path" functions


Robert D. Skeels wrote:
How about path-file-hierarchy (in keeping with rfc3986 section 3.3)?

I don't think I see the "in keeping." rfc3986 section 3.3 doesn't
use the term "file hierarchy" and only uses "file" for contrast/illustration.


Perhaps "path-hierarchy" might work.

A question. I am tired so if this doesn't make sense please forgive. If we have file: as a scheme like http:, then wouldn't FilePath be another instance (ie. English, not OOP) of a URIPath?

One implementation reason: a FilePath is a wrapper around a java.io.File while a URIPath is a wrapper around a java.net.URI.

A "file:" URI should be a URIPath.

There are also differences in terms of "funny" characters: a FilePath
uses OS-specific syntax ("c:\\foo\bar") while a URIPath uses URI syntax
("file:/foo/bar"), plus a URIPath may use %-escapes.
--
	--Per Bothner
per@bothner.com   http://per.bothner.com/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]