Example usage for java.nio.file.attribute BasicFileAttributeView name

List of usage examples for java.nio.file.attribute BasicFileAttributeView name

Introduction

In this page you can find the example usage for java.nio.file.attribute BasicFileAttributeView name.

Prototype

@Override
String name();

Source Link

Document

Returns the name of the attribute view.

Usage

From source file:Main.java

public static void main(String[] args) {

    Path path = Paths.get("C:/tutorial/Java/JavaFX", "Topic.txt");

    BasicFileAttributeView bv = Files.getFileAttributeView(path, BasicFileAttributeView.class);
    System.out.println(bv.name());

}