• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 311
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
With JNI.
 
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks so much
reply
    Bookmark Topic Watch Topic
  • New Topic