|
Web Site | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.janino.util.resource.MapResourceCreator
public class MapResourceCreator
Creates resources as byte arrays in a delegate Map
.
Constructor Summary | |
---|---|
MapResourceCreator()
Auto-create the delegate Map . |
|
MapResourceCreator(Map map)
|
Method Summary | |
---|---|
OutputStream |
createResource(String resourceName)
Create the designated resource. |
boolean |
deleteResource(String resourceName)
Deletes the resource with the given name. |
Map |
getMap()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MapResourceCreator()
Map
.
public MapResourceCreator(Map map)
Method Detail |
---|
public Map getMap()
public 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 resource
IOException
- Problems creating the resourcepublic boolean deleteResource(String resourceName)
ResourceCreator
deleteResource
in interface ResourceCreator
false
if the resource could not be deleted
|
Web Site | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |