public interface FileAccessService
| Modifier and Type | Method and Description |
|---|---|
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)
Deprecated.
|
File |
getPrivatePersistentDirectory(String dirName,
FileCategory category)
This method creates a directory specific to the current user.
|
File |
getPrivatePersistentFile(String fileName)
Deprecated.
|
File |
getPrivatePersistentFile(String fileName,
FileCategory category)
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.
|
File getTemporaryFile() throws IOException
IOException - If the file cannot be createdFile getTemporaryDirectory() throws IOException
IOException - If the directory cannot be created@Deprecated File getPrivatePersistentFile(String fileName) throws Exception
getPrivatePersistentFile(String, FileCategory).ExceptionFile getPrivatePersistentFile(String fileName, FileCategory category) throws Exception
fileName - The name of the private file you wish to accesscategory - The classification of the file.Exception - Thrown if there is no suitable location for the persistent
file@Deprecated File getPrivatePersistentDirectory(String dirName) throws Exception
ExceptionFile getPrivatePersistentDirectory(String dirName, FileCategory category) throws Exception
dirName - The name of the private directory you wish to access.category - The classification of the directory.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.Copyright © 2021 jitsi.org. All rights reserved.