Java Path Create nio toPath(@Nullable String plain)

Here you can find the source of toPath(@Nullable String plain)

Description

to Path

License

Open Source License

Declaration

@Nullable
    public static Path toPath(@Nullable String plain) 

Method Source Code

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

import javax.annotation.Nullable;

import java.nio.file.*;

public class Main {
    @Nullable
    public static Path toPath(@Nullable String plain) {
        return plain != null ? Paths.get(plain) : null;
    }/*w  w w.j  a  v a 2 s. c o  m*/
}

Related

  1. createZipFs(Path path)
  2. createZkNodeName(String zkRoot, Path root, Path file)
  3. getOrCreateDir(Path path)
  4. isTempCreatedFile(Path filePath)
  5. setTimes(FileTime lastModifiedTime, FileTime lastAccessTime, FileTime createTime, Path... files)
  6. toPath(String first, String... more)
  7. toPath(String path)
  8. toPath(String uri, Path root)
  9. toPath(String value, Path defaultValue)