public interface ResourceCreator
There also exists a concept ResourceFinder that finds Resources for reading.
ResourceFinder| Modifier and Type | Method and Description |
|---|---|
OutputStream |
createResource(String resourceName)
Creates 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 © 2019. All rights reserved.