WimImage
Inheritance: java.lang.Object
public final class WimImage
Representerar en enskild avbild i wim-arkivet.
Metoder
| Metod | Beskrivning |
|---|---|
| extractToDirectory(String destinationDirectory) | Extraherar alla filer i avbilden till den angivna katalogen. |
| getAllEntries() | Hämtar poster av typen WimEntry som utgör avbilden rekursivt. |
| getEntry(String path) | Hämtar posten av typen WimEntry för en given sökväg. |
| getParent() | Hämtar arkivet som avbilden tillhör. |
| getRootDirectory() | Hämtar rotkatalogsposten för avbilden. |
extractToDirectory(String destinationDirectory)
public final void extractToDirectory(String destinationDirectory)
Extraherar alla filer i avbilden till den angivna katalogen.
try (WimArchive archive = new WimArchive(“install.wim”)) { archive.getImages().get_Item(0).extractToDirectory(“C:\extracted”); }
**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| destinationDirectory | java.lang.String | the path to the directory to place the extracted files in.
If the directory does not exist, it will be created |
### getAllEntries() {#getAllEntries--}
public final Iterable
Gets entries of [WimEntry](../../com.aspose.zip/wimentry) type constituting the image recursively.
**Returns:**
java.lang.Iterable<com.aspose.zip.WimEntry> - entries of [WimEntry](../../com.aspose.zip/wimentry) type constituting the image recursively
### getEntry(String path) {#getEntry-java.lang.String-}
public final WimEntry getEntry(String path)
Gets the entry of [WimEntry](../../com.aspose.zip/wimentry) type for a given path.
**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| path | java.lang.String | the path of file or directory |
**Returns:**
[WimEntry](../../com.aspose.zip/wimentry) - the entry of [WimEntry](../../com.aspose.zip/wimentry) type
### getParent() {#getParent--}
public final WimArchive getParent()
Gets the archive the image belongs to.
**Returns:**
[WimArchive](../../com.aspose.zip/wimarchive) - the archive the image belongs to
### getRootDirectory() {#getRootDirectory--}
public final WimDirectoryEntry getRootDirectory()
Gets the root directory entry of the image.
**Returns:**
[WimDirectoryEntry](../../com.aspose.zip/wimdirectoryentry) - the root directory entry of the image