I have a requirement in which we need to add/update generic property of any file like .doc, .pdf, .txt etc.. need to update properties like Title, Subject, Comments, Company..etc. I tried with below classes but doesn't work. we are running on windows platform.
java.nio.file.attribute.AclFileAttributeView;
java.nio.file.attribute.BasicFileAttributeView;
java.nio.file.attribute.DosFileAttributeView;
java.nio.file.attribute.FileAttributeView;
java.nio.file.attribute.FileOwnerAttributeView;
java.nio.file.attribute.PosixFileAttributeView;
java.nio.file.attribute.UserDefinedFileAttributeView;
I also gone through below related links but does not help : - How do I access "Details" ("Title", "Subject", etc.) of file properties in Perl or PowerShell script - Reading Windows file summary properties (title, subject, author) in Java
Can any one suggest any hint please.
Thanks, Ravi