Lines Matching refs:UnixPath

43 class UnixPath
64 UnixPath(UnixFileSystem fs, byte[] path) {
69 UnixPath(UnixFileSystem fs, String input) {
195 // Checks that the given file is a UnixPath
196 static UnixPath toUnixPath(Path obj) {
199 if (!(obj instanceof UnixPath))
201 return (UnixPath)obj;
253 private UnixPath emptyPath() {
254 return new UnixPath(getFileSystem(), new byte[0]);
263 public UnixPath getRoot() {
272 public UnixPath getFileName() {
289 return new UnixPath(getFileSystem(), result);
293 public UnixPath getParent() {
308 return new UnixPath(getFileSystem(), result);
318 public UnixPath getName(int index) {
336 return new UnixPath(getFileSystem(), result);
340 public UnixPath subpath(int beginIndex, int endIndex) {
365 return new UnixPath(getFileSystem(), result);
396 public UnixPath resolve(Path obj) {
399 return ((UnixPath)obj);
401 return new UnixPath(getFileSystem(), result);
404 UnixPath resolve(byte[] other) {
405 return resolve(new UnixPath(getFileSystem(), other));
409 public UnixPath relativize(Path obj) {
410 UnixPath other = toUnixPath(obj);
437 UnixPath remainder = other.subpath(i, cn);
465 return new UnixPath(getFileSystem(), result);
478 return new UnixPath(getFileSystem(), result);
604 return new UnixPath(getFileSystem(), result);
609 if (!(Objects.requireNonNull(other) instanceof UnixPath))
611 UnixPath that = (UnixPath)other;
660 if (!(Objects.requireNonNull(other) instanceof UnixPath))
662 UnixPath that = (UnixPath)other;
718 int len2 = ((UnixPath) other).path.length;
722 byte v2[] = ((UnixPath) other).path;
738 if ((ob != null) && (ob instanceof UnixPath)) {
811 public UnixPath toAbsolutePath() {
821 return new UnixPath(getFileSystem(),
829 UnixPath absolute = toAbsolutePath();
835 return new UnixPath(getFileSystem(), rp);
843 UnixPath result = fs.rootDirectory();
845 UnixPath element = absolute.getName(i);