Facemorph.DataBase.TemparyFiles
Class TemparyFileHandler

java.lang.Object
  extended by Facemorph.DataBase.TemparyFiles.TemparyFileHandler

public class TemparyFileHandler
extends java.lang.Object

This class is designed to simplify the process of creating, accessing and disposing of tempary files


Constructor Summary
TemparyFileHandler(java.lang.String tempDirectory)
          Create a new tempary file system
 
Method Summary
protected  void add(Stub e)
           
 void cleanUp()
           
 boolean exists(java.lang.String id)
           
protected  void finalize()
           
 java.lang.String generateFileName(java.lang.String id)
           
 java.lang.String generateUniqueID()
           
 void remove(Stub stub)
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemparyFileHandler

public TemparyFileHandler(java.lang.String tempDirectory)
Create a new tempary file system

Parameters:
tempDirectory - the location of the tempary store
Method Detail

finalize

protected void finalize()
                 throws java.lang.Throwable
Overrides:
finalize in class java.lang.Object
Throws:
java.lang.Throwable

cleanUp

public void cleanUp()

add

protected void add(Stub e)

remove

public void remove(Stub stub)

generateUniqueID

public java.lang.String generateUniqueID()

generateFileName

public java.lang.String generateFileName(java.lang.String id)

exists

public boolean exists(java.lang.String id)