If the path that this represents is /usr/bin/../etc/./README
then the actual path, normalized, is /usr/etc/README
. Once the path has been normalized it is possible to acquire the segments as an array of strings, which allows simple manipulation of the path.
Although RFC 2396 defines the path within a URI to have parameters this does not extract those parameters this will simply normalize the path and include the path parameters in the path. If the path is to be converted into a OS specific file system path that has the parameters extracted then the AddressParser
should be used.
@author Niall Gallagher
|
|