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)
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.
|
public static InputStream createBundle(InputStream jarInputStream, Properties instructions, String jarInfo) throws IOException
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 processingpublic static InputStream createBundle(InputStream jarInputStream, Properties instructions, String jarInfo, OverwriteMode overwriteMode) throws IOException
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 modeorg.ops4j.lang.NullArgumentException - if any of the parameters is nullIOException - re-thron during jar processingpublic static Properties parseInstructions(String query) throws MalformedURLException
query - query part of an url.MalformedURLException - if provided path does not comply to syntax.Copyright © 2006–2015 OPS4J - Open Participation Software for Java. All rights reserved.