public class MapResourceCreator extends Object implements ResourceCreator
Map.| Constructor and Description |
|---|
MapResourceCreator()
Auto-create the delegate
Map. |
MapResourceCreator(Map<String,byte[]> map) |
| Modifier and Type | Method and Description |
|---|---|
OutputStream |
createResource(String resourceName)
Creates the designated resource.
|
boolean |
deleteResource(String resourceName)
Deletes the resource with the given name.
|
Map<String,byte[]> |
getMap() |
public MapResourceCreator()
Map.public final Map<String,byte[]> getMap()
String-to-byte[] map of the resources createdpublic final OutputStream createResource(String resourceName)
ResourceCreatorcreateResource in interface ResourceCreatorresourceName - Designates the resource; typically structured by slashes ("/") like
"com/foo/pkg/Bar.class"OutputStream are stored in the resourcepublic final boolean deleteResource(String resourceName)
ResourceCreatordeleteResource in interface ResourceCreatorfalse if the resource could not be deletedCopyright © 2019. All rights reserved.