Path file = Paths.get(file.getAbsolutePath());
BasicFileAttributes attr = Files.readAttributes(file, BasicFileAttributes.class);
System.out.println("creationTime: " + attr.creationTime());
System.out.println("lastAccessTime: " + attr.lastAccessTime());
System.out.println("lastModifiedTime: " + attr.lastModifiedTime());
System.out.println("isDirectory: " + attr.isDirectory());
System.out.println("isOther: " + attr.isOther());
System.out.println("isRegularFile: " + attr.isRegularFile());
System.out.println("isSymbolicLink: " + attr.isSymbolicLink());
System.out.println("size: " + attr.size());
以上用于读取文件元数据的代码。我尝试过使用JPEG和AI文件。如何提取更多元数据字段。如下图所示。 。如何像屏幕截图一样提取IPTC值。任何建议或参考链接都非常感谢。需要提取标题:,说明:,关键字:,标题: