public class BndUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.io.InputStream |
createBundle(java.io.InputStream jarInputStream,
java.util.Properties instructions,
java.lang.String jarInfo)
Processes the input jar and generates the necessary OSGi headers using specified instructions.
|
static java.io.InputStream |
createBundle(java.io.InputStream jarInputStream,
java.util.Properties instructions,
java.lang.String jarInfo,
OverwriteMode overwriteMode,
java.util.Map<java.lang.String,java.lang.Object> embeddedResources,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> extraImportPackages,
java.util.Set<java.lang.String> actualImports,
VersionResolver versionResolver)
Processes the input jar and generates the necessary OSGi headers using specified instructions.
|
static java.io.PipedInputStream |
createInputStream(aQute.lib.osgi.Jar jar)
Creates an piped input stream for the wrapped jar.
|
static aQute.lib.osgi.Jar |
createJar(java.io.InputStream jarInputStream,
java.util.Properties instructions,
java.lang.String jarInfo,
OverwriteMode overwriteMode,
java.util.Map<java.lang.String,java.lang.Object> embeddedResources,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> extraImportPackages,
java.util.Set<java.lang.String> actualImports,
VersionResolver versionResolver)
Processes the input jar and generates the necessary OSGi headers using specified instructions.
|
static java.util.Properties |
parseInstructions(java.lang.String query)
Parses bnd instructions out of an url query string.
|
protected static aQute.lib.osgi.Resource |
toResource(java.lang.Object value) |
public static java.io.InputStream createBundle(java.io.InputStream jarInputStream,
java.util.Properties instructions,
java.lang.String jarInfo)
throws java.lang.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 nulljava.io.IOException - re-thron during jar processingjava.lang.Exceptionpublic static java.io.InputStream createBundle(java.io.InputStream jarInputStream,
java.util.Properties instructions,
java.lang.String jarInfo,
OverwriteMode overwriteMode,
java.util.Map<java.lang.String,java.lang.Object> embeddedResources,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> extraImportPackages,
java.util.Set<java.lang.String> actualImports,
VersionResolver versionResolver)
throws java.lang.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 nulljava.io.IOException - re-thron during jar processingjava.lang.Exceptionpublic static aQute.lib.osgi.Jar createJar(java.io.InputStream jarInputStream,
java.util.Properties instructions,
java.lang.String jarInfo,
OverwriteMode overwriteMode,
java.util.Map<java.lang.String,java.lang.Object> embeddedResources,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> extraImportPackages,
java.util.Set<java.lang.String> actualImports,
VersionResolver versionResolver)
throws java.lang.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 nulljava.io.IOException - re-thron during jar processingjava.lang.Exceptionprotected static aQute.lib.osgi.Resource toResource(java.lang.Object value)
public static java.io.PipedInputStream createInputStream(aQute.lib.osgi.Jar jar)
throws java.io.IOException
jar - the wrapped jarjava.io.IOException - re-thrownpublic static java.util.Properties parseInstructions(java.lang.String query)
throws java.net.MalformedURLException
query - query part of an url.java.net.MalformedURLException - if provided path does not comply to syntax.Copyright © 2016 Red Hat. All Rights Reserved.