ariba.util.io
Class TemporaryFileFactoryImpl

java.lang.Object
  extended by ariba.util.io.TemporaryFileFactoryImpl
All Implemented Interfaces:
TemporaryFileFactory

public class TemporaryFileFactoryImpl
extends java.lang.Object
implements TemporaryFileFactory

This implementation uses the ariba.channel.io package to generate temporary file names.


Constructor Summary
TemporaryFileFactoryImpl()
          Creates a new TemporaryFileFactoryImpl.
 
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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemporaryFileFactoryImpl

public TemporaryFileFactoryImpl()
Creates a new TemporaryFileFactoryImpl.

Method Detail

createTemporaryFileName

public java.lang.String createTemporaryFileName()
Create a temporary file and return the name which should include the entire path. The file is created in the current "." directory.

Specified by:
createTemporaryFileName in interface TemporaryFileFactory
Returns:
The name of the temporary file created.

createTemporaryFileName

public 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. Provide some input parameters for the name and location of the file.

Specified by:
createTemporaryFileName in interface TemporaryFileFactory
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:
String The name of the temporary file created.

getTempDir

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

Specified by:
getTempDir in interface TemporaryFileFactory
Returns:
String A unique name for the file.
Throws:
java.io.IOException


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