|
janino.net | ||||||||
| 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<String,byte[]> map)
|
|
| Method Summary | |
|---|---|
OutputStream |
createResource(String resourceName)
Create the designated resource. |
boolean |
deleteResource(String resourceName)
Deletes the resource with the given name. |
Map<String,byte[]> |
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<String,byte[]> map)
| Method Detail |
|---|
public final Map<String,byte[]> getMap()
String-to-byte[] map of the resources createdpublic final OutputStream createResource(String resourceName)
ResourceCreator
createResource in interface ResourceCreatorresourceName - 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 ResourceCreatorfalse if the resource could not be deleted
|
janino.net | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||