ariba.util.io
Interface TemporaryFileFactory

All Known Implementing Classes:
TemporaryFileFactoryImpl

public interface TemporaryFileFactory

This interface provides isolation to the user from the exact mechanism of generating temporary file names. For example, the mechanism may be through the Base APIs or through ariba.util.


Method Summary
 java.lang.String createTemporaryFileName()
          Create a temporary file and return the name which should include the entire path.
 java.lang.String createTemporaryFileName(java.io.File directory, java.lang.String prefix, java.lang.String suffix)
          Create a temporary file and return the name which should include the entire path.
 java.io.File getTempDir()
          Returns the tempDir
 

Method Detail

createTemporaryFileName

java.lang.String createTemporaryFileName()
                                         throws java.io.IOException
Create a temporary file and return the name which should include the entire path.

Returns:
A unique name for the file.
Throws:
java.io.IOException

createTemporaryFileName

java.lang.String createTemporaryFileName(java.io.File directory,
                                         java.lang.String prefix,
                                         java.lang.String suffix)
                                         throws java.io.IOException
Create a temporary file and return the name which should include the entire path. Provide some input parameters for the name and location of the file.

Parameters:
directory - Name of the directory in which we create the temporary file.
prefix - This is prepended to the name of the file.
suffix - This is appended to the name of the file.
Returns:
A unique name for the file.
Throws:
java.io.IOException

getTempDir

java.io.File getTempDir()
                        throws java.io.IOException
Returns the tempDir

Returns:
A unique name for the file.
Throws:
java.io.IOException


AribaWeb User Interface Development Framework
Copyright © 2000-2014 Ariba, Inc. All Rights Reserved.