How to search in CD

Hi

I have a problem like:

My data is dumped into cd. So i need to provide searching in cd rom for that data. Also i would know which cd has that data. I should also have to promt user to insert that cd for search.

FIrst of all, i need to know how to detect a cd rom and make search on it.

Any help....

[332 byte] By [jaspersearcha] at [2007-10-3 3:55:55]
# 1
Two words: Google
SoulTech2012a at 2007-7-14 21:54:04 > top of Java-index,Core,Core APIs...
# 2
There is no functionality in the standard API that lets you detect if a drive or folder is on a CD. For floppy drives there is a method in the FileSystemView class.
jsalonena at 2007-7-14 21:54:04 > top of Java-index,Core,Core APIs...
# 3

If the CD is mounted to your OS, it should have a path just like any other file or directory (or system root in windows). Just do a normal file search rooted at that file path. If its not mounted or if the CD is not a file/folder structure (e.g. an audio disc), then java alone won't do the job. There may be a third-party JNI library that could help you, though.

Updownquarka at 2007-7-14 21:54:04 > top of Java-index,Core,Core APIs...