WimImage

Inheritance: java.lang.Object

public final class WimImage

Represents single image within wim archive.

Methods

MethodDescription
extractToDirectory(String destinationDirectory)Extracts all the files in the image to the directory provided.
getAllEntries()Gets entries of WimEntry type constituting the image recursively.
getEntry(String path)Gets the entry of WimEntry type for a given path.
getParent()Gets the archive the image belongs to.
getRootDirectory()Gets the root directory entry of the image.

extractToDirectory(String destinationDirectory)

public final void extractToDirectory(String destinationDirectory)

Extracts all the files in the image to the directory provided.


     try (WimArchive archive = new WimArchive("install.wim")) {
         archive.getImages().get_Item(0).extractToDirectory("C:\\extracted");
     }
 

Parameters:

ParameterTypeDescription
destinationDirectoryjava.lang.Stringthe path to the directory to place the extracted files in.

If the directory does not exist, it will be created |

getAllEntries()

public final Iterable<WimEntry> getAllEntries()

Gets entries of WimEntry type constituting the image recursively.

Returns: java.lang.Iterable<com.aspose.zip.WimEntry> - entries of WimEntry type constituting the image recursively

getEntry(String path)

public final WimEntry getEntry(String path)

Gets the entry of WimEntry type for a given path.

Parameters:

ParameterTypeDescription
pathjava.lang.Stringthe path of file or directory

Returns: WimEntry - the entry of WimEntry type

getParent()

public final WimArchive getParent()

Gets the archive the image belongs to.

Returns: WimArchive - the archive the image belongs to

getRootDirectory()

public final WimDirectoryEntry getRootDirectory()

Gets the root directory entry of the image.

Returns: WimDirectoryEntry - the root directory entry of the image