Java Path Relative nio relativize(Path absoluteDirectory, Path subDirectory)

Here you can find the source of relativize(Path absoluteDirectory, Path subDirectory)

Description

relativize

License

Open Source License

Declaration

public static Path relativize(Path absoluteDirectory, Path subDirectory) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.nio.file.Path;

public class Main {
    public static Path relativize(Path absoluteDirectory, Path subDirectory) {
        return absoluteDirectory.relativize(subDirectory.toAbsolutePath().normalize());
    }/*from w ww  .  ja v a 2 s. c  o m*/
}

Related

  1. getSourceFileRelativePath(Class declaringClass)
  2. isRelativePath(Path baseDir, Path file)
  3. isRelativized(final Path base, final String successor)
  4. relativePath(String input, String mainurl)
  5. relativePathTo(Path path, Path basePath)
  6. relativize(Path target, Collection paths)
  7. relativizeAndNormalizePath(final String baseDirectory, final String path)
  8. relativizePath(IPath path, IPath basePath)
  9. relativizePath(IPath path, IPath basePath, boolean strict)