public final class BundleExtractor
extends java.lang.Object
| Constructor and Description |
|---|
BundleExtractor(org.osgi.framework.Bundle bundle)
Creates a BundleExtractor instance for the specified bundle.
|
BundleExtractor(java.lang.Class<?> clazz)
Creates a BundleExtractor instance for the parent bundle of the specified class.
|
| 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(org.osgi.framework.Bundle bundle)
bundle - - target bundle of this instancepublic BundleExtractor(java.lang.Class<?> clazz)
clazz - - a class object of the target bundlepublic 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 - 2018 Adobe Systems Incorporated. All Rights Reserved"