public interface FileAccessService
Modifier and Type | Method and Description |
---|---|
FailSafeTransaction |
createFailSafeTransaction(java.io.File file)
Creates a failsafe transaction which can be used to safely store
informations into a file.
|
java.io.File |
getDefaultDownloadDirectory()
Returns the default download directory depending on the operating system.
|
java.io.File |
getPrivatePersistentDirectory(java.lang.String dirName)
Deprecated.
|
java.io.File |
getPrivatePersistentDirectory(java.lang.String dirName,
FileCategory category)
This method creates a directory specific to the current user.
|
java.io.File |
getPrivatePersistentFile(java.lang.String fileName)
Deprecated.
|
java.io.File |
getPrivatePersistentFile(java.lang.String fileName,
FileCategory category)
This method returns a file specific to the current user.
|
java.io.File |
getTemporaryDirectory()
This method returns a created temporary directory.
|
java.io.File |
getTemporaryFile()
This method returns a created temporary file.
|
java.io.File getTemporaryFile() throws java.io.IOException
java.io.IOException
- If the file cannot be createdjava.io.File getTemporaryDirectory() throws java.io.IOException
java.io.IOException
- If the directory cannot be created@Deprecated java.io.File getPrivatePersistentFile(java.lang.String fileName) throws java.lang.Exception
getPrivatePersistentFile(String, FileCategory)
.java.lang.Exception
java.io.File getPrivatePersistentFile(java.lang.String fileName, FileCategory category) throws java.lang.Exception
fileName
- The name of the private file you wish to accesscategory
- The classification of the file.java.lang.Exception
- Thrown if there is no suitable location for the persistent
file@Deprecated java.io.File getPrivatePersistentDirectory(java.lang.String dirName) throws java.lang.Exception
java.lang.Exception
java.io.File getPrivatePersistentDirectory(java.lang.String dirName, FileCategory category) throws java.lang.Exception
dirName
- The name of the private directory you wish to access.category
- The classification of the directory.java.lang.Exception
- Thrown if there is no suitable location for the persistent
directory.java.io.File getDefaultDownloadDirectory() throws java.io.IOException
java.io.IOException
- if it I/O error occurredFailSafeTransaction createFailSafeTransaction(java.io.File file)
file
- The file concerned by the transaction, null if file is null.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.