| Constructor and Description |
|---|
QEmuImage(File file) |
QEmuImage(String path) |
| Modifier and Type | Method and Description |
|---|---|
void |
create(QEmuImageFormat format,
File backingFile)
Creates this image.
|
void |
create(QEmuImageFormat format,
long size)
Creates this image.
|
void |
delete()
Deletes the file underlying this image, if it exists.
|
File |
getFile() |
QEmuImageInfo |
query() |
@Nonnull public QEmuImageInfo query() throws IOException
IOExceptionpublic void create(@Nonnull QEmuImageFormat format, @Nonnegative long size) throws IOException
format - The image format for the new image.size - The virtual size of the new image.IOExceptionpublic void create(@Nonnull QEmuImageFormat format, @Nonnull File backingFile) throws IOException
The size of the new image is derived from the existing backing file.
backingFile is referenced by a relative path. If you want it referenced
absolutely, canonicalize the argument with File.getAbsoluteFile()
before calling this method.
format - The image format for the new image.backingFile - The backing file for the new image.IOExceptionpublic void delete() throws IOException
IOException