-1

Not sure if this is possible, but can I access the raw bytes of a compact disc using Java? If so could you provide a sample of code please? I am using Windows and don't mind platform specific code.

Ben Zuill-Smith
  • 3,504
  • 3
  • 25
  • 44

2 Answers2

1

I'm pretty sure you can't do it in Java. You will have to write native C code using Windows API (start with CreateFile as described here) and then call it using JNI from Java.

MK.
  • 33,605
  • 18
  • 74
  • 111
0

You need to ask the operating system with a platform specific API - under Linux there is most likely a /dev file for this,

Thorbjørn Ravn Andersen
  • 73,784
  • 33
  • 194
  • 347