Java Path File Name nio getRoot(final String pathName)

Here you can find the source of getRoot(final String pathName)

Description

get Root

License

Apache License

Declaration

public static Path getRoot(final String pathName) 

Method Source Code

//package com.java2s;
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file

import java.nio.file.FileSystems;

import java.nio.file.Path;

public class Main {
    public static Path getRoot(final String pathName) {
        return getPathObject(pathName).getRoot();
    }/*from  ww w  .j  a v a  2 s  .co m*/

    public static Path getPathObject(final String from) {
        return FileSystems.getDefault().getPath(from);
    }
}

Related

  1. getQualifiedName(String outputDir, Path path)
  2. getRelativePathFile(String fileName)
  3. getRelativePathName(Path root, Path path)
  4. getResourcePath(Class resourceClass, String resourceName)
  5. getResourceRootPath(Class resourceClass, String resourceName)
  6. getRootPathFromDirectory(String resourceName, URL resource)
  7. getSimpleName(String path)
  8. getSolrCorePath(Path solrHome, String indexName)
  9. getSourceRoot(Path filePath, String pkgName)