• Post Reply Bookmark Topic Watch Topic
  • New Topic

Can java access Windows "file-properties-summary" ?

 
Sol Mayer-Orn
Ranch Hand
Posts: 311
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Windows (at least, Win XP) offers an option to keep some 'summary' for each file.
This summary is accessed through 'file properties' (right-clicking the file, and selecting 'properties'). This yields a popup, with a 'Summary' tab.

My question: can JAVA access this 'file summary' text (read and write summaries, preferrably without using JNI ?

(Needless to say, I know this would limit my application to run on Windows machine. We can live with this).

Thanks.
 
Paul Clapham
Sheriff
Posts: 21863
36
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
With JNI.
 
Vlado Zajac
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The data is stored in NTFS Alternate data streams (ADS) which are readable through Java IO (I have tested it). They should be writable, too.

I used the streams utility to find the names of the ADSs.

The problem is unknown format of the data.

MS Office files (doc) uses some other mechanism. Data is stored inside file itself which has even more complicated unknown (and proprietary) format. xls files don't have summary tab for some reason.
[ January 16, 2007: Message edited by: Vlado Zajac ]
 
Sol Mayer-Orn
Ranch Hand
Posts: 311
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks so much
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!