net.sourceforge.atunes.kernel.utils
Class TempFolder

java.lang.Object
  extended by net.sourceforge.atunes.kernel.utils.TempFolder
All Implemented Interfaces:
ApplicationFinishListener

public class TempFolder
extends java.lang.Object
implements ApplicationFinishListener

The Class TempFolder.


Method Summary
 void applicationFinish()
          Called when application finishes
 java.io.File copyToTempFolder(java.io.File srcFile)
          Copies a file to temp folder.
static TempFolder getInstance()
          Returns singleton instance
 void removeAllFiles()
          Removes all files from temp folder.
 boolean removeFile(java.io.File tempFile)
          Removes a file from temp folder.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static TempFolder getInstance()
Returns singleton instance

Returns:

copyToTempFolder

public java.io.File copyToTempFolder(java.io.File srcFile)
Copies a file to temp folder.

Parameters:
srcFile - the src file
Returns:
File object to copied file in temp folder

removeFile

public boolean removeFile(java.io.File tempFile)
Removes a file from temp folder.

Parameters:
tempFile - the temp file
Returns:
true, if removes the file

removeAllFiles

public void removeAllFiles()
Removes all files from temp folder.


applicationFinish

public void applicationFinish()
Description copied from interface: ApplicationFinishListener
Called when application finishes

Specified by:
applicationFinish in interface ApplicationFinishListener


Copyright © 2006-2008 The aTunes Team. All Rights Reserved.