|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FileAccessService
A service used to provide the basic functionality required to access the underlying file system. Note: Never store unencrypted sensitive information, such as passwords, personal data, credit card numbers, etc..
| Field Summary | |
|---|---|
static String |
CONFPROPERTYKEY_USER_HOME
The key of the configuration property containing the user home dir - if it is not defined the system property is used |
| Method Summary | |
|---|---|
FailSafeTransaction |
createFailSafeTransaction(File file)
Creates a failsafe transaction which can be used to safely store informations into a file. |
File |
getDefaultDownloadDirectory()
Returns the default download directory depending on the operating system. |
File |
getPrivatePersistentDirectory(String dirName)
This method creates a directory specific to the current user. |
File |
getPrivatePersistentDirectory(String[] dirNames)
This method creates a directory specific to the current user. |
File |
getPrivatePersistentFile(String fileName)
This method returns a file specific to the current user. |
File |
getTemporaryDirectory()
This method returns a created temporary directory. |
File |
getTemporaryFile()
This method returns a created temporary file. |
| Field Detail |
|---|
static final String CONFPROPERTYKEY_USER_HOME
| Method Detail |
|---|
File getTemporaryFile()
throws IOException
IOException - If the file cannot be created
File getTemporaryDirectory()
throws IOException
IOException - If the directory cannot be created
File getPrivatePersistentFile(String fileName)
throws Exception
fileName - The name of the private file you wish to access
Exception - Thrown if there is no suitable location for the persistent
file
File getPrivatePersistentDirectory(String dirName)
throws Exception
dirName - The name of the private directory you wish to access.
Exception - Thrown if there is no suitable location for the persistent
directory.
File getPrivatePersistentDirectory(String[] dirNames)
throws Exception
getPrivatePersistentDirectory(String)
dirNames - The name of the private directory you wish to access.
Exception - Thrown if there is no suitable location for the persistent
directory.
File getDefaultDownloadDirectory()
throws IOException
IOException - if it I/O error occurredFailSafeTransaction createFailSafeTransaction(File file)
file - The file concerned by the transaction, null if file is null.
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||