public class FileAccessServiceImpl extends Object implements FileAccessService
| Modifier and Type | Class and Description |
|---|---|
static class |
FileAccessServiceImpl.GUID |
| Modifier and Type | Field and Description |
|---|---|
static String |
TEMP_FILE_PREFIX
The file prefix for all temp files.
|
static String |
TEMP_FILE_SUFFIX
The file suffix for all temp files.
|
| Constructor and Description |
|---|
FileAccessServiceImpl() |
| 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.
|
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()
Returns the temporary directory.
|
File |
getTemporaryFile()
This method returns a created temporary file.
|
public static final String TEMP_FILE_PREFIX
public static final String TEMP_FILE_SUFFIX
public File getTemporaryFile() throws IOException
getTemporaryFile in interface FileAccessServiceIOException - If the file cannot be createdpublic File getTemporaryDirectory() throws IOException
getTemporaryDirectory in interface FileAccessServiceIOException - if the temporary directory cannot not be created@Deprecated public File getPrivatePersistentFile(String fileName) throws Exception
getPrivatePersistentFile(String, FileCategory).getPrivatePersistentFile in interface FileAccessServiceExceptionpublic File getPrivatePersistentFile(String fileName, FileCategory category) throws Exception
getPrivatePersistentFile in interface FileAccessServicefileName - The name of the private file you wish to accesscategory - The classification of the file.Exception - if we faile to create the file.@Deprecated public File getPrivatePersistentDirectory(String dirName) throws Exception
getPrivatePersistentDirectory in interface FileAccessServiceExceptionpublic File getPrivatePersistentDirectory(String dirName, FileCategory category) throws Exception
getPrivatePersistentDirectory in interface FileAccessServicedirName - 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.public File getDefaultDownloadDirectory() throws IOException
getDefaultDownloadDirectory in interface FileAccessServiceIOException - if it I/O error occurredpublic FailSafeTransaction createFailSafeTransaction(File file)
createFailSafeTransaction in interface FileAccessServicefile - The file concerned by the transaction, null if file is null.Copyright © 2022 jitsi.org. All rights reserved.