Class MapResourceCreator
java.lang.Object
org.codehaus.janino.util.resource.MapResourceCreator
- All Implemented Interfaces:
ResourceCreator
Creates resources as byte arrays in a delegate
Map
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal OutputStream
createResource
(String resourceName) Create the designated resource.final boolean
deleteResource
(String resourceName) Deletes the resource with the given name.final Map
getMap()
-
Constructor Details
-
MapResourceCreator
public MapResourceCreator()Auto-create the delegateMap
. -
MapResourceCreator
-
-
Method Details
-
getMap
-
createResource
Description copied from interface:ResourceCreator
Create the designated resource.- Specified by:
createResource
in interfaceResourceCreator
- Parameters:
resourceName
- Designates the resource; typically structured by slashes ("/") like "com/foo/pkg/Bar.class
"- Returns:
- Bytes written to this
OutputStream
are stored in the resource
-
deleteResource
Description copied from interface:ResourceCreator
Deletes the resource with the given name.- Specified by:
deleteResource
in interfaceResourceCreator
- Returns:
false
if the resource could not be deleted
-