Example usage for java.nio.file FileStore getFileStoreAttributeView

List of usage examples for java.nio.file FileStore getFileStoreAttributeView

Introduction

In this page you can find the example usage for java.nio.file FileStore getFileStoreAttributeView.

Prototype

public abstract <V extends FileStoreAttributeView> V getFileStoreAttributeView(Class<V> type);

Source Link

Document

Returns a FileStoreAttributeView of the given type.

Usage

From source file:Main.java

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

    for (FileStore store : fileSystem.getFileStores()) {
        FileStoreAttributeView fsav = store.getFileStoreAttributeView(FileStoreAttributeView.class);
        System.out.println(fsav);
    }/*from  w ww . j av a  2s. c  o  m*/
}