Hi, This may sound strange. But one of the requirements that I have is to read data from a CD (in form of music files) and store them on the hard disk. Is there any Java class/API which supports reading from a CD? TIA Manoj.
Wouldn't this just be like reading from any other file? In UNIX/Linux the CD-ROM drive is mounted as any other mount point, and in Win-whatever it gets a drive letter, and in MacOS it has a name like any other drive.
Manoj, If you are talking about "music files" as .MP3 or .WAV files (or something like them) that is easy... just do as Susan suggested above... But if you are talking about "music files" to mean audio tracks off a CD... well... tough luck... you're going to have to basically write your own "audio ripper" to translate the binary encoded music from the CD... which I have no way of knowing how you would even read from the CD since I don't think audio tracks are actually stored as "files"... Hope this helps (well, as much as telling someone that something is going to be really, really hard to do can help... ),
-Nate [This message has been edited by Nathan Pruett (edited January 17, 2001).]
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Joined: Sep 20, 2000
Nathan, Thanks a lot for the info. In fact, what you said is precisely what i have to do. You see, in this world, all kind of weird things can happen - one such is happening to my project. well, my client is giving me data in a CD only. And that too the data we are talking abt is music files. so, i have to find a way to 'rip' it off and store in hard disk. well, if anybody knows about any kinf of stuff which can do the work in the minimum time, i shall be happy. (kind of DLLs etc, which I can use in my program using JINI) TIA Manoj.
Joined: Jan 04, 2001
I see, my mistake. Here is a reference to various CD formats. Not Java, but there's probably enough information there for a competent Java programmer to whip something up.
You might also check out some utilities that perhaps you could automate. I went to www.download.com and searched on 'cd to mp3', several hits, including http://www.mgshareware.com/ who has a freeware cd audio to mp3, wav. Hope you're charging plenty for this project!