Determining Views Supported by a Particular File System - Java File Path IO

Java examples for File Path IO:File System

Description

Determining Views Supported by a Particular File System

Demo Code

import java.nio.file.FileSystem;
import java.nio.file.FileSystems;
import java.util.Set;

public class Main {
  public static void main(String[] args) {
    FileSystem fs = FileSystems.getDefault();          
    Set<String> views = fs.supportedFileAttributeViews();  
              //from   w  ww .  j a  v  a 2 s. c  o  m
    for (String view : views) {  
        System.out.println(view);  
    }  
  }
}

Result


Related Tutorials