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

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-27 05:11:58

That information is stored in an NTFS Alternate Data Stream named "♣SummaryInformation" - not sure if Java supports teh reading of ADS data via the colon notation.

Update: Apparently this should work:

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

You'll have to figure out the format yourself.

In Java 7 it may work, but until then you have to use a native dll, to get that information.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!