@Role public interface Environment
Modifier and Type | Method and Description |
---|---|
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.
|
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")URL
or null if not foundInputStream getResourceAsStream(String resourceName)
resourceName
- the full name of the resource to access (eg "/somefile.properties")InputStream
Copyright © 2004–2021 XWiki. All rights reserved.