Lines Matching refs:path
34 * Used to represent a platform-neutral path within a platform-specific
48 path = p;
56 if (path.length() == 0)
58 return new File(directory, path.replace('/', File.separatorChar));
62 return path.compareTo(other.path);
69 return path.equals(((RelativePath) other).path);
74 return path.hashCode();
79 return "RelPath[" + path + "]";
83 return path;
86 protected final String path;
91 * Internally, the file separator is always '/', and if the path is not empty,
111 this(d.path + p);
116 int l = path.length();
119 int sep = path.lastIndexOf('/', l - 2);
120 return new RelativeDirectory(path.substring(0, sep + 1));
125 int l = path.length();
127 return path;
128 int sep = path.lastIndexOf('/', l - 2);
129 return path.substring(sep + 1, l - 1);
133 * Return true if this subdirectory "contains" the other path.
134 * A subdirectory path does not contain itself.
137 return other.path.length() > path.length() && other.path.startsWith(path);
142 return "RelativeDirectory[" + path + "]";
166 this(d.path + p);
170 this(d, p.path);
175 int sep = path.lastIndexOf('/');
176 return new RelativeDirectory(path.substring(0, sep + 1));
181 int sep = path.lastIndexOf('/');
182 return path.substring(sep + 1);
186 return zip.getEntry(path);
191 return "RelativeFile[" + path + "]";