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