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
Gordon Beaton - 27 Apr 2007 15:04 GMT
> 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
--
a24900@googlemail.com - 27 Apr 2007 18:59 GMT
> 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.