Java FileSystem.getPath(String first, String ... more)

Syntax

FileSystem.getPath(String first, String ... more) has the following syntax.

public abstract Path getPath(String first,  String ... more)

Example

In the following code shows how to use FileSystem.getPath(String first, String ... more) method.


import java.io.IOException;
import java.nio.file.FileSystem;
import java.nio.file.FileSystems;
import java.nio.file.Path;
/*from w w w.  j a va 2 s  .c o m*/
public class Main {

  public static void main(String[] args) throws IOException {
    FileSystem fileSystem = FileSystems.getDefault();

    Path path = fileSystem.getPath("c:/abc/");
  }
}




















Home »
  Java Tutorial »
    java.nio.file »




DirectoryStream.Filter
Files
FileStore
FileSystem
FileVisitor
Path
Paths
WatchService