Traverse/mount an ISO image in Java ?

S

Spendius

Hello,
Did anybody ever write a program that would allow you to
look at the contents of an ISO image file ? (or even to
mount it)

Thanks.
Spendius
 
G

Gordon Beaton

Did anybody ever write a program that would allow you to look at the
contents of an ISO image file ? (or even to mount it)

The OS itself needs to mount it, so something based on Runtime.exec()
seems appropriate, e.g (OS specific command):

String cmd = "mount -o loop " + isofile + " " + mountpoint;
Runtime.getRuntime.exec(cmd);

Once mounted, there is no difference between this and any "regular"
filesystem, so traversal is done with java.io.File and friends in the
usual manner.

/gordon

--
 
A

a24900

Hello,
Did anybody ever write a program
GIYF

that would allow you to
look at the contents of an ISO image file ?

Requires to write a lot of code to implement the CD yellowbook
specification.
(or even to
mount it)

Requires support from the OS, can't be done in Java alone.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top