|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IResource
A resource abstraction, inspired as a generalization of the API
provided by ClassLoader to obtain resources.
| Method Summary | |
|---|---|
boolean |
exists()
Returns true iff the resource exists. |
java.io.File |
getFile()
Returns the resource file. |
java.io.InputStream |
getInputStream()
Returns an input stream used to read the resource bytes. |
java.lang.String |
getName()
Returns the resource name. |
java.net.URL |
getURL()
Returns the resource URL. |
boolean |
isFile()
Returns true iff the resource is actually a local file. |
| Method Detail |
|---|
java.lang.String getName()
java.net.URL getURL()
java.io.InputStream getInputStream()
throws java.io.IOException
java.io.IOExceptionboolean exists()
true iff the resource exists.
boolean isFile()
true iff the resource is actually a local file.
java.io.File getFile()
isFile() returns true,
then the actual file is returned, otherwise null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||