Test.java Source code

Java tutorial

Introduction

Here is the source code for Test.java

Source

    import java.nio.file.FileSystem;
    import java.nio.file.Path;
    import java.nio.file.Paths;
    import java.util.Set;

public class Test {

  public static void main(String[] args) {
    Path path = Paths.get("C:/home/docs/users.txt");
    FileSystem fileSystem = path.getFileSystem();
    Set<String> supportedViews = fileSystem.supportedFileAttributeViews();

    for (String view : supportedViews) {
      System.out.println(view);
    }
  }
}

    Output:

    acl basic owner user dos