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
 String createTemporaryFileName()
          Create a temporary file and return the name which should include the entire path.
 String createTemporaryFileName(File directory, String prefix, String suffix)
          Create a temporary file and return the name which should include the entire path.
 File getTempDir()
          Returns the tempDir
 

Method Detail

createTemporaryFileName

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

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

createTemporaryFileName

String createTemporaryFileName(File directory,
                               String prefix,
                               String suffix)
                               throws 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:
IOException

getTempDir

File getTempDir()
                throws IOException
Returns the tempDir

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


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