Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How can I use java to operate a CD-RW or DVD-RAM driver?  RSS feed

Yueyu Lin
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Recently I want to do some more "high-level" application using java.
Now I planned to develop a software that can write cd-r ,cd-rw,dvd-ram disk.
But now I don't know how to do this job.
First,I know java uses the os-related representation of drivers.How can I know which driver is CD or DVD driver and how can I know which driver is CD-RW or DVD-RAM driver?Must I write native code to implement this function?
Sencond,how should I handle the driver?Can I just use the normal in&out stream just like other disks or must I follow the ISO specification to write data into the CD-RW or DVD-RAM disk?
So I just want to prove that java can do most jobs that other language can do,please give me some advice.
I want to use SWT as GUI and pure java to do other business.
My first idea is that I must use JNI to finish the job.
But then I thought another way.
Since java is high level,she encapsulate all file IO operation as stream.So can I treat a CD-RW or DVD-RW driver as a common disk just like floppy disk or hard disk to read and write?
I want to know that if I can do so and if I will meet performance problem?
Thank you again!
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!