public class BndUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static InputStream |
createBundle(InputStream jarInputStream,
Properties instructions,
String jarInfo)
Processes the input jar and generates the necessary OSGi headers using specified instructions.
|
static InputStream |
createBundle(InputStream jarInputStream,
Properties instructions,
String jarInfo,
OverwriteMode overwriteMode,
Map<String,Object> embeddedResources,
Map<String,Map<String,String>> extraImportPackages,
Set<String> actualImports,
VersionResolver versionResolver)
Processes the input jar and generates the necessary OSGi headers using specified instructions.
|
static PipedInputStream |
createInputStream(aQute.lib.osgi.Jar jar)
Creates an piped input stream for the wrapped jar.
|
static aQute.lib.osgi.Jar |
createJar(InputStream jarInputStream,
Properties instructions,
String jarInfo,
OverwriteMode overwriteMode,
Map<String,Object> embeddedResources,
Map<String,Map<String,String>> extraImportPackages,
Set<String> actualImports,
VersionResolver versionResolver)
Processes the input jar and generates the necessary OSGi headers using specified instructions.
|
static Properties |
parseInstructions(String query)
Parses bnd instructions out of an url query string.
|
protected static aQute.lib.osgi.Resource |
toResource(Object value) |
public static InputStream createBundle(InputStream jarInputStream, Properties instructions, String jarInfo) throws Exception
jarInputStream - input stream for the jar to be processed. Cannot be null.instructions - bnd specific processing instructions. Cannot be null.jarInfo - information about the jar to be processed. Usually the jar url. Cannot be null or empty.org.ops4j.lang.NullArgumentException - if any of the parameters is nullIOException - re-thron during jar processingExceptionpublic static InputStream createBundle(InputStream jarInputStream, Properties instructions, String jarInfo, OverwriteMode overwriteMode, Map<String,Object> embeddedResources, Map<String,Map<String,String>> extraImportPackages, Set<String> actualImports, VersionResolver versionResolver) throws Exception
jarInputStream - input stream for the jar to be processed. Cannot be null.instructions - bnd specific processing instructions. Cannot be null.jarInfo - information about the jar to be processed. Usually the jar url. Cannot be null or empty.overwriteMode - manifets overwrite modeactualImports - org.ops4j.lang.NullArgumentException - if any of the parameters is nullIOException - re-thron during jar processingExceptionpublic static aQute.lib.osgi.Jar createJar(InputStream jarInputStream, Properties instructions, String jarInfo, OverwriteMode overwriteMode, Map<String,Object> embeddedResources, Map<String,Map<String,String>> extraImportPackages, Set<String> actualImports, VersionResolver versionResolver) throws Exception
jarInputStream - input stream for the jar to be processed. Cannot be null.instructions - bnd specific processing instructions. Cannot be null.jarInfo - information about the jar to be processed. Usually the jar url. Cannot be null or empty.overwriteMode - manifets overwrite modeactualImports - org.ops4j.lang.NullArgumentException - if any of the parameters is nullIOException - re-thron during jar processingExceptionprotected static aQute.lib.osgi.Resource toResource(Object value)
public static PipedInputStream createInputStream(aQute.lib.osgi.Jar jar) throws IOException
jar - the wrapped jarIOException - re-thrownpublic static Properties parseInstructions(String query) throws MalformedURLException
query - query part of an url.MalformedURLException - if provided path does not comply to syntax.Copyright © 2011–2014 Red Hat. All rights reserved.