aspose file tools
The moose likes Java in General and the fly likes Reading from a CD Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Reading from a CD" Watch "Reading from a CD" New topic
Author

Reading from a CD

Manoj Pooleery
Ranch Hand

Joined: Sep 20, 2000
Posts: 35
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.
Susan Hoover
Ranch Hand

Joined: Jan 04, 2001
Posts: 64
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.
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

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).]


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Manoj Pooleery
Ranch Hand

Joined: Sep 20, 2000
Posts: 35
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.
Susan Hoover
Ranch Hand

Joined: Jan 04, 2001
Posts: 64
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.
Michael Hildner
Ranch Hand

Joined: Oct 13, 2000
Posts: 297
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!
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Reading from a CD
 
Similar Threads
I cleared SCBCD with 87%
Run Linux from a CD
USB DIVICE
Problems reading CDs with Linux
K&B Mock Exam