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 OutputStreamcreateResource(String resourceName) Create the designated resource.final booleandeleteResource(String resourceName) Deletes the resource with the given name.final MapgetMap()
-
Constructor Details
-
MapResourceCreator
public MapResourceCreator()Auto-create the delegateMap. -
MapResourceCreator
-
-
Method Details
-
getMap
-
createResource
Description copied from interface:ResourceCreatorCreate the designated resource.- Specified by:
createResourcein interfaceResourceCreator- Parameters:
resourceName- Designates the resource; typically structured by slashes ("/") like "com/foo/pkg/Bar.class"- Returns:
- Bytes written to this
OutputStreamare stored in the resource
-
deleteResource
Description copied from interface:ResourceCreatorDeletes the resource with the given name.- Specified by:
deleteResourcein interfaceResourceCreator- Returns:
falseif the resource could not be deleted
-