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)
Create 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)
ResourceCreator
createResource
in interface ResourceCreator
resourceName
- Designates the resource; typically structured by slashes ("/") like
"com/foo/pkg/Bar.class
"OutputStream
are stored in the resourcepublic final boolean deleteResource(String resourceName)
ResourceCreator
deleteResource
in interface ResourceCreator
false
if the resource could not be deletedCopyright © 2001–2016. All rights reserved.