Categories

JAVA DATEBASE
Technology Network Community
Oracle Database
Fusion Middleware
Development Tools
Java
Desktop
Server & Storage Systems
Enterprise Management
Berkeley DB Family
Cloud Computing
Big Data
Business Intelligence
Architecture
Migration and Modernization
E-Business Suite
Siebel
PeopleSoft Enterprise
JD Edwards World
Industries
JD Edwards EnterpriseOne
User Productivity Kit Pro (UPK) and Tutor
Governance, Risk & Compliance (GRC)
Master Data Management (MDM)
Oracle CRM On Demand
On Demand: SaaS and Managed Applications
AutoVue Enterprise Visualization
Primavera
ATG
Agile PLM
Endeca Experience Management
Fusion Applications
Archived Forums

 



Tags

New To Java


How to get File Properties like Comments , Subject and Title


Hello All,  Which Java API can be used to get File Properties details.. of "Commnets", "Subject" and title.  Any Sample java code for the same ...  Thanks

what file properties are you referring to?  at the most basic level, files don't really have any properties except file name and size.  many operating systems and/or file systems have ways of augmenting information about a file.  my guess is you are looking for a way to get this extra information.  maybe on windows?

user2688312 wrote: Hello All,   Which Java API can be used to get File Properties details.. of "Commnets", "Subject" and title.   Any Sample java code for the same ...  Thanks  Hmm, is this for a Word document by any chance? If so: an API that can read word files would be a good place to start.  btw: what moved you to post this in "conventional & interruptable IO"??

Moderator Action: ... moved to the New To Java forum.

As per Thread subject line... I am looking for Commnets and Subkect ..all properties , when we select right click and properties and in Details section of windows file system.  It can be any file format..   Managing Metadata (File and File Store Attributes)  http://download.oracle.com/javase/tutorial/essential/io/fileAttr.html   any one have idea baout… useful API to try / get Property values ?

user2688312 wrote: As per Thread subject line... I am looking for Commnets and Subkect ..all properties , when we select right click and properties and in Details section of windows file system.  It can be any file format..    Managing Metadata (File and File Store Attributes)   http://download.oracle.com/javase/tutorial/essential/io/fileAttr.html    any one have idea baout… useful API to try / get Property values ? I don't think a pure reliable java solution is possible. Look at this thread here, there are a few things to try out.

The java.nio.file package in 1.7 does all this. Nothing prior.

I saw that Link, But I do not find any concrete solution or one single solution for the same...   Any other pointers...... ?

Can you provide any class name reference ...Which can provide following information from Java 1.7 or any sample code for the same ???  Comments , Subject & Title... etc..  Will be really helpful.

java.nio.file.Files.getFileAttributeView, using UserDefinedFileAttributeView.  That took me 5 minutes with the Javadoc.

EJP wrote: The java.nio.file package in 1.7 does all this. Nothing prior.  Actually, you can get that data by reading the right alternate stream of the file (:SummaryInformation), and parsing its content.


Related Links

About JDK 5.0
NullPointerException Error when loading a JPG file...
getting NullPointerException
What's thread Local
About String.format() method.
Parsing Strings
Need help from people who know Java. Some beginner questions.
Servlet +init() + Server Details
Warning before saving over a file in JFileChooser
remove an item from an Array
Join Group
Automate Microsoft Word in a Java application
test
Problem switching from JOptionPane to JFrame, getting program to wait
image in Java
Reading file line by line