Reading Windows file summary properties (title, subject, author) in Java

If you right-click on a file in Windows and select Properties , you can manage some properties on the Summary tab, for example Title, Subject and Author, for example, in this example:

alt text

I am trying to find a way to read these properties using Java . Is there a library for this? Is it possible? Thanks in advance!

Peter

+6
java windows file author summary
source share
2 answers

This information is stored in NTFS. An alternative data stream named "♣ SummaryInformation" is not sure if Java supports reading ADS data through the Colon Notation.

Update: Apparently this should work:

FileInputStream in = new FileInputStream("test.txt:\u2663SummaryInformation"); 

You will need to determine the format yourself.

+3
source share

In Java 7, this may work, but before that, you must use the native DLL to get this information.

0
source share

All Articles