@Deprecated public interface CollocationQueryImplementation
This should be treated as a heuristic, useful when deciding whether to use absolute or relative links between path locations.
The file names might refer to nonexistent files. A provider may or may not be able to say anything useful about them in this case.
File names passed to this query will already have been normalized according to
the semantics of
Threading note: implementors should avoid acquiring locks that might be held
by other threads. Generally treat this interface similarly to SPIs in
org.openide.filesystems with respect to threading semantics.
|Modifier and Type||Method and Description|
Check whether two files are logically part of one directory tree.
Find a root of a logical tree containing this file, if any.
boolean areCollocated(File file1, File file2)
CVSROOT) they might be considered collocated. If they are to be collocated their absolute paths must share a prefix directory, i.e. they must be located in the same filesystem root. If nothing is known about them, return false.
file1- one file
file2- another file
File findRoot(File file)
file- a file on disk (must be an absolute URI)
Built on April 20 2023. | Copyright © 2017-2023 Apache Software Foundation. All Rights Reserved.