public class MergePath extends FilesystemPath (Code)
A merging of several Paths used like a CLASSPATH. When the MergePath
is opened for read, the first path in the list which contains the file will
be the opened file. When the MergePath is opened for write, the first path
in the list is used for the write.
In the following example, "first" has priority over "second".
If test.xml exists in both "first" and "second", the open will
return "first/test.xml".
MergePage merge = new MergePath();
merge.addMergePath(Vfs.lookup("first");
merge.addMergePath(Vfs.lookup("second");
Path path = merge.lookup("test.xml");
ReadStream is = path.openRead();
schemeWalk is called by Path for a scheme lookup like file:/tmp/foo
Parameters: userPath - the user's lookup() path Parameters: attributes - the user's attributes Parameters: filePath - the actual lookup() path Parameters: offset - offset into filePath