public class MapResourceCreator extends Object implements ResourceCreator
Map
.Constructor and Description |
---|
MapResourceCreator()
Auto-create the delegate
Map . |
MapResourceCreator(Map 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 |
getMap() |
public MapResourceCreator()
Map
.public MapResourceCreator(Map map)
public final Map getMap()
public final OutputStream createResource(String resourceName) throws IOException
ResourceCreator
createResource
in interface ResourceCreator
resourceName
- Designates the resource; typically structured by slashes ("/") like
"com/foo/pkg/Bar.class
"OutputStream
are stored in the resourceIOException
- Problems creating the resourcepublic final boolean deleteResource(String resourceName)
ResourceCreator
deleteResource
in interface ResourceCreator
false
if the resource could not be deletedCopyright © 2001–2014. All rights reserved.