Lines Matching refs:path
37 * Used to represent a platform-neutral path within a platform-specific
51 path = p;
60 return directory.resolve(path.replace("/", sep));
66 return root.resolve(path.replace("/", sep));
71 return path.compareTo(other.path);
78 return path.equals(((RelativePath) other).path);
83 return path.hashCode();
88 return "RelPath[" + path + "]";
92 return path;
95 protected final String path;
100 * Internally, the file separator is always '/', and if the path is not empty,
120 this(d.path + p);
125 int l = path.length();
128 int sep = path.lastIndexOf('/', l - 2);
129 return new RelativeDirectory(path.substring(0, sep + 1));
134 int l = path.length();
136 return path;
137 int sep = path.lastIndexOf('/', l - 2);
138 return path.substring(sep + 1, l - 1);
142 * Return true if this subdirectory "contains" the other path.
143 * A subdirectory path does not contain itself.
146 return other.path.length() > path.length() && other.path.startsWith(path);
151 return "RelativeDirectory[" + path + "]";
175 this(d.path + p);
179 this(d, p.path);
184 int sep = path.lastIndexOf('/');
185 return new RelativeDirectory(path.substring(0, sep + 1));
190 int sep = path.lastIndexOf('/');
191 return path.substring(sep + 1);
195 return zip.getEntry(path);
200 return "RelativeFile[" + path + "]";