|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
@Role public interface Environment
Abstraction that represents an Environment (Java SE, Servlet, Portlet, etc) and provides API to access environment-related data.
| Method Summary | |
|---|---|
File |
getPermanentDirectory()
Gets the root directory of a location for storing persisting data. |
URL |
getResource(String resourceName)
|
InputStream |
getResourceAsStream(String resourceName)
|
File |
getTemporaryDirectory()
Gets the directory for storing temporary data. |
| Method Detail |
|---|
File getTemporaryDirectory()
File object pointing to a directory that the application can use for storing temporary filesFile getPermanentDirectory()
File object pointing to the root folder of the permanent directoryURL getResource(String resourceName)
resourceName - the full name of the resource to access (eg "/somefile.properties")
URLInputStream getResourceAsStream(String resourceName)
resourceName - the full name of the resource to access (eg "/somefile.properties")
InputStream
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||