列出用户定义的属性名称和值大小
import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path;// from nowjava.com - 时 代 Java import java.nio.file.Paths; import java.nio.file.attribute.UserDefinedFileAttributeView; public class Main { public static void main(String[] args) { Path path = Paths.get("C:/folder1/folder2/folder4", "test.txt"); UserDefinedFileAttributeView udfav = Files.getFileAttributeView(path, UserDefinedFileAttributeView.class); try { for (String name : udfav.list()) { System.out.println(udfav.size(name) +