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