|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TinyBundle
Main type when making bundles with the TinyBundles
library.
Get an instance from TinyBundles
Factory, add resources and call "prepare" to go to the next finalization step.
Method Summary | |
---|---|
TinyBundle |
add(java.lang.Class content)
Add a class to the current bundle. |
TinyBundle |
add(java.lang.String name,
java.io.InputStream content)
Add a resource to the current bundle (to be built). |
TinyBundle |
add(java.lang.String name,
java.net.URL content)
Add a resource to the current bundle (to be built). |
java.io.InputStream |
build()
When you are done adding stuff to *this* you can call this method to go to next step. |
java.io.InputStream |
build(BuildableBundle builder)
When you are done adding stuff to *this* you can call this method to go to next step. |
TinyBundle |
remove(java.lang.Class content)
remove a class to the current bundle. |
TinyBundle |
removeHeader(java.lang.String key)
|
TinyBundle |
removeResource(java.lang.String key)
|
TinyBundle |
set(java.lang.String key,
java.lang.String value)
|
Method Detail |
---|
TinyBundle add(java.lang.String name, java.net.URL content)
name
- final path inside the jarcontent
- content to be copied into bundle.
TinyBundle add(java.lang.String name, java.io.InputStream content)
name
- final path inside the jarcontent
- content to be copied into bundle.
TinyBundle add(java.lang.Class content)
content
- content to be copied into bundle.
TinyBundle remove(java.lang.Class content)
content
- class to be removed
java.io.InputStream build(BuildableBundle builder)
builder
- Instance may be retrieved from {TinyBundles} factory methods.
java.io.InputStream build()
TinyBundle set(java.lang.String key, java.lang.String value)
TinyBundle removeResource(java.lang.String key)
TinyBundle removeHeader(java.lang.String key)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |