Java Path Create nio toPath(String path)

Here you can find the source of toPath(String path)

Description

to Path

License

Apache License

Declaration


public static Path toPath(String path) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.nio.file.Path;
import java.nio.file.Paths;

public class Main {
    /**/*from w  w w.  ja  v  a 2s.c o  m*/
     * @see Paths#get(String, String...)
     */

    public static Path toPath(String path) {
        return Paths.get(path);
    }
}

Related

  1. getOrCreateDir(Path path)
  2. isTempCreatedFile(Path filePath)
  3. setTimes(FileTime lastModifiedTime, FileTime lastAccessTime, FileTime createTime, Path... files)
  4. toPath(@Nullable String plain)
  5. toPath(String first, String... more)
  6. toPath(String uri, Path root)
  7. toPath(String value, Path defaultValue)
  8. toPathArray(File... files)
  9. toPaths(File... files)