|
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 | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.fileaccess.FileAccessServiceImpl
public class FileAccessServiceImpl
Default FileAccessService implementation.
| Field Summary | |
|---|---|
static String |
TEMP_FILE_PREFIX
The file prefix for all temp files. |
static String |
TEMP_FILE_SUFFIX
The file suffix for all temp files. |
| Fields inherited from interface net.java.sip.communicator.service.fileaccess.FileAccessService |
|---|
CONFPROPERTYKEY_USER_HOME |
| Constructor Summary | |
|---|---|
FileAccessServiceImpl()
|
|
| 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. |
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. |
String |
getScHomeDirLocation()
Returns the location of the directory where SIP Communicator is to store user specific data such as configuration files, message and call history as well as is bundle repository. |
String |
getScHomeDirName()
Returns the name of the directory where SIP Communicator is to store user specific data such as configuration files, message and call history as well as is bundle repository. |
File |
getTemporaryDirectory()
Returns the temporary directory. |
File |
getTemporaryFile()
This method returns a created temporary file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String TEMP_FILE_PREFIX
public static final String TEMP_FILE_SUFFIX
| Constructor Detail |
|---|
public FileAccessServiceImpl()
| Method Detail |
|---|
public File getTemporaryFile()
throws IOException
getTemporaryFile in interface FileAccessServiceIOException - If the file cannot be created
public File getTemporaryDirectory()
throws IOException
getTemporaryDirectory in interface FileAccessServiceIOException - if the temporary directory cannot not be created
public File getPrivatePersistentFile(String fileName)
throws Exception
getPrivatePersistentFile in interface FileAccessServicefileName - The name of the private file you wish to access
Exception - if we faile to create the file.
public File getPrivatePersistentDirectory(String dirName)
throws Exception
getPrivatePersistentDirectory in interface FileAccessServicedirName - The name of the private directory you wish to access.
Exception - Thrown if there is no suitable location for the persistent
directory.
public File getPrivatePersistentDirectory(String[] dirNames)
throws Exception
getPrivatePersistentDirectory(String)
getPrivatePersistentDirectory in interface FileAccessServicedirNames - The name of the private directory you wish to access.
Exception - Thrown if there is no suitable location for the persistent
directory.public String getScHomeDirName()
public String getScHomeDirLocation()
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.
|
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 | |||||||||