问题
Using Java I need to be able to create an empty CD image and also to inject/extract files into/from this image. Do you know any java libs for that? Is there a way to accomplish it without using JNI? (if not, then your JNI solution is appreciated). Thank you guys.
PS. This task is required for data transportation between emulated environment created by Qemu emulator.
回答1:
In principle this is simple to implement, just write a file that is properly structured as CD-image. In practice thats probably a lot of work.
Simply googling for "java create iso image" reveal there is already an implementation to do just that: http://jiic.berlios.de/
来源:https://stackoverflow.com/questions/9621227/create-an-empty-cd-rom-image-and-inject-extract-files-into-from-it-using-java