public final class BundleExtractor
extends java.lang.Object
Constructor and Description |
---|
BundleExtractor(Bundle bundle)
Creates a BundleExtractor instance for the specified bundle.
|
Modifier and Type | Method and Description |
---|---|
java.io.File |
extractExecutable(java.lang.String path)
Extract the specified file from this bundle and mark it as executable (Linux only).
|
java.io.File |
extractResource(java.lang.String path)
Extracts a resource from the target bundle to the file system.
|
public BundleExtractor(Bundle bundle)
bundle
- - target bundle of this instancepublic java.io.File extractResource(java.lang.String path) throws java.io.IOException
path
- - path to the bundle resource (always relative to the bundle root)java.io.IOException
- - if path cannot be found in the bundle or extraction failspublic java.io.File extractExecutable(java.lang.String path) throws java.io.IOException
path
- - path to the executable bundle resource (always relative to the bundle root)java.io.IOException
- - if path cannot be found in the bundle or extraction fails"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"