Lines Matching defs:WindowsPath

44 class WindowsPath extends AbstractPath {
79 private WindowsPath(WindowsFileSystem fs,
93 static WindowsPath parse(WindowsFileSystem fs, String path) {
95 return new WindowsPath(fs, result.type(), result.root(), result.path());
101 static WindowsPath createFromNormalizedPath(WindowsFileSystem fs,
109 return new WindowsPath(fs,
126 * Creates a WindowsPath from a given path that is known to be normalized.
128 static WindowsPath createFromNormalizedPath(WindowsFileSystem fs,
139 extends WindowsPath implements BasicFileAttributesHolder
307 private WindowsPath emptyPath() {
308 return new WindowsPath(getFileSystem(), WindowsPathType.RELATIVE, "", "");
325 return new WindowsPath(getFileSystem(), WindowsPathType.RELATIVE, "", path.substring(off));
329 public WindowsPath getParent() {
337 return new WindowsPath(getFileSystem(),
344 public WindowsPath getRoot() {
347 return new WindowsPath(getFileSystem(), type, root, root);
371 static WindowsPath toWindowsPath(Path path) {
374 if (!(path instanceof WindowsPath)) {
377 return (WindowsPath)path;
381 public WindowsPath relativize(Path obj) {
382 WindowsPath other = toWindowsPath(obj);
524 public WindowsPath resolve(Path obj) {
525 WindowsPath other = toWindowsPath(obj);
539 return new WindowsPath(getFileSystem(), type, root, result);
617 public WindowsPath getName(int index) {
621 return new WindowsPath(getFileSystem(), WindowsPathType.RELATIVE, "", elementAsString(index));
625 public WindowsPath subpath(int beginIndex, int endIndex) {
644 return new WindowsPath(getFileSystem(), WindowsPathType.RELATIVE, "", sb.toString());
649 if (!(Objects.requireNonNull(obj) instanceof WindowsPath))
651 WindowsPath other = (WindowsPath)obj;
680 if (!(Objects.requireNonNull(obj) instanceof WindowsPath))
682 WindowsPath other = (WindowsPath)obj;
728 String s2 = ((WindowsPath)obj).path;
748 if ((obj != null) && (obj instanceof WindowsPath)) {
816 public WindowsPath toAbsolutePath() {
834 public WindowsPath toRealPath(LinkOption... options) throws IOException {