public interface ResourceCreator
There also exists a concept ResourceFinder
that
finds Resource
s for reading.
ResourceFinder
Modifier and Type | Method and Description |
---|---|
java.io.OutputStream |
createResource(java.lang.String resourceName)
Create the designated resource.
|
boolean |
deleteResource(java.lang.String resourceName)
Deletes the resource with the given name.
|
java.io.OutputStream createResource(java.lang.String resourceName) throws java.io.IOException
resourceName
- Designates the resource; typically structured by slashes ("/") like
"com/foo/pkg/Bar.class
"OutputStream
are stored in the resourcejava.io.IOException
- Problems creating the resourceboolean deleteResource(java.lang.String resourceName)
false
if the resource could not be deleted