|
OPS4J Pax Swissbox :: Bnd Utils 1.3.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ops4j.pax.swissbox.bnd.BndUtils
public class BndUtils
Wrapper over PeterK's bnd lib.
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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 null
IOException
- 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 mode
org.ops4j.lang.NullArgumentException
- if any of the parameters is null
IOException
- 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.
|
OPS4J Pax Swissbox :: Bnd Utils 1.3.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |