wood burning stoves 2.0*
The moose likes Features new in Java 7 and the fly likes NIO.2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Features new in Java 7
Bookmark "NIO.2" Watch "NIO.2" New topic


john price
Ranch Hand

Joined: Feb 24, 2011
Posts: 495

Will the new metadata feature(s) in Java 7 in any way help decode files (aka Music, Video, etc). Like, will it be easier to find .mp3 tags (title, artist, length, etc). My guess is no, because they would have to do it for that for a bunch (and would be media specific). I am just wondering....Maybe with "UserDefinedFileAttributeView" ? Here is the link (Java tutorials) : http://download.oracle.com/javase/tutorial/essential/io/fileAttr.html

EDIT: Generally, for Java 7, does the JDK convert your code to be backwards compatible with other versions (IE : Java 6). If I were to try to run Java 7 code on a Java 6 machine, would it work?

“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” (Mosher's Law of Software Engineering)
“If debugging is the process of removing bugs, then programming must be the process of putting them in.” (Edsger Dijkstra)
Wouter Oet
Saloon Keeper

Joined: Oct 25, 2008
Posts: 2700

About your first question: No. The information you're referring to is stored in the file itself and is not meta-data.
About your second question: No. You can't run Java 7 code on a Java 6 JVM.

"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
john price
Ranch Hand

Joined: Feb 24, 2011
Posts: 495

Just making sure . Thank you very much!
Consider Paul's rocket mass heater.
subject: NIO.2
Similar Threads
Should Java 7/8 be backwards compatible?
method with an unknown number of parameters
Using Modulus
JDOM Vs Others
Skipping input and writing to file using FileWriter