List of usage examples for java.nio.file FileStore getAttribute
public abstract Object getAttribute(String attribute) throws IOException;
From source file:Main.java
public static void main(String[] args) throws IOException { FileSystem fileSystem = FileSystems.getDefault(); for (FileStore store : fileSystem.getFileStores()) { boolean compression = (Boolean) store.getAttribute("zfs:compression"); }// ww w. ja va2 s. co m }