public interface TinyBundle
TinyBundles library.
Get an instance from TinyBundles Factory, add resources and call build() to go to the final step.| Modifier and Type | Method and Description |
|---|---|
TinyBundle |
add(Class<?> content)
Add a class to the current bundle.
|
TinyBundle |
add(Class<?> content,
InnerClassStrategy strategy)
Add a class to the current bundle.
|
TinyBundle |
add(String name,
InputStream content)
Add a resource to the current bundle (to be built).
|
TinyBundle |
add(String name,
URL content)
Add a resource to the current bundle (to be built).
|
InputStream |
build()
Shortcut to
build(BuildStrategy) witth buildstrategy = TinyBundles.withClassicBuilder(). |
InputStream |
build(BuildStrategy builder)
When you are done adding stuff to *this* you can call this method to go to next step.
|
String |
getHeader(String key)
Get header value.
|
TinyBundle |
read(InputStream input)
Read an existing bundle or jar into Tinybundles for modification.
|
TinyBundle |
read(InputStream input,
boolean readData)
Read an existing bundle or jar into Tinybundles for modification.
|
TinyBundle |
remove(Class<?> content)
remove a class to the current bundle.
|
TinyBundle |
removeHeader(String key)
Remove a previously added header.
|
TinyBundle |
removeResource(String key)
Remove a previously added resource.
|
TinyBundle |
set(String key,
String value)
Set header values that go into the Manifest.
|
TinyBundle add(String name, URL content)
name - final path inside the jarcontent - content to be copied into bundle.TinyBundle add(String name, InputStream content)
name - final path inside the jarcontent - content to be copied into bundle.TinyBundle add(Class<?> content)
content - content to be copied into bundle.TinyBundle add(Class<?> content, InnerClassStrategy strategy)
content - TinyBundle remove(Class<?> content)
content - class to be removedInputStream build(BuildStrategy builder)
builder - builder to be used.InputStream build()
build(BuildStrategy) witth buildstrategy = TinyBundles.withClassicBuilder().TinyBundle set(String key, String value)
key - a keyvalue - a valueTinyBundle removeResource(String key)
TinyBundles before.key - a key as StringTinyBundle removeHeader(String key)
TinyBundles before.key - a key as StringTinyBundle read(InputStream input)
input - stream of JarInputStreamTinyBundle read(InputStream input, boolean readData)
input - stream of JarInputStreamCopyright © 2007–2014 OPS4J - Open Participation Software for Java. All rights reserved.