|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@Contract public interface Disk
Interface to create and manipulate a virtual disk
| Method Summary | |
|---|---|
int |
create(File path,
int size,
File mountPoint)
Creates a virtual disk |
int |
createISOFromDirectory(File sourceDirectory,
File outputISOFile)
create an ISO File with the content of a directory |
int |
mount(File path,
File mountPoint)
Mount an existing virtual disk |
int |
umount()
Un-mount this virtual disk instance |
| Method Detail |
|---|
int create(File path,
int size,
File mountPoint)
throws IOException
path - path to the virtual disk filesize - size of the virtual diskmountPoint - directory where the virtual disk should be mounted
IOException - when the disk cannot be created.
int mount(File path,
File mountPoint)
throws IOException
path - path to the virtual disk filemountPoint - directory to use to mount the virtual disk
IOException - if the virtual disk cannot be mounted
int umount()
throws IOException
IOException - if the disk cannot be un-mounted
int createISOFromDirectory(File sourceDirectory,
File outputISOFile)
throws IOException
sourceDirectory - path to the directory content to put in the iso fileoutputISOFile - location of the created iso file. (It will be delete first if present)
IOException - if the ISO file cannot be created
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||