Lines Matching refs:path
31 public boolean exists(Path path) {
32 return Files.exists(path);
35 public boolean isDirectory(Path path) {
36 return Files.isDirectory(path);
39 private FileSystem makeJarFileSystem(Path path) {
41 return FileSystems.newFileSystem(makeJarFileURI(path), new HashMap<>());
47 private URI makeJarFileURI(Path path) {
49 return new URI("jar:file:" + path.toAbsolutePath() + "!/");
55 public ClassLoader createClassLoader(Path path, ClassLoader parent) {
57 return URLClassLoader.newInstance(buildUrls(path), parent);
63 public ClassLoader createClassLoader(Path path) throws MalformedURLException {
64 return URLClassLoader.newInstance(buildUrls(path));
67 private URL[] buildUrls(Path path) throws MalformedURLException {
68 return new URL[] { path.toUri().toURL() };
80 public Path getSubDirectory(FileSystem fileSystem, Path root, Path path) throws IOException {
84 if (relative.equals(path)) {