jfig.utils
Class TmpFile

java.lang.Object
  extended byjfig.utils.TmpFile

public class TmpFile
extends java.lang.Object

create and manage temporary files.

TmpFile creates and manages temporary files (this really should be in java.io or java.lang).


Constructor Summary
TmpFile()
           
 
Method Summary
static java.io.File getTmpDir()
           
static java.io.File getTmpFile()
          try to create a temporary file.
static java.io.File getTmpFile(java.io.File path)
           
static java.io.File getTmpFileInCurrentDir()
           
static void main(java.lang.String[] argv)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TmpFile

public TmpFile()
Method Detail

getTmpFile

public static java.io.File getTmpFile()
try to create a temporary file. This method tries to create the tmp file at the default location for tmp files (like /usr/tmp or C:\temp). If that fails, it tries to create a tmp file in the current working directory.


getTmpDir

public static java.io.File getTmpDir()

getTmpFileInCurrentDir

public static java.io.File getTmpFileInCurrentDir()

getTmpFile

public static java.io.File getTmpFile(java.io.File path)

main

public static void main(java.lang.String[] argv)
                 throws java.lang.Exception
Throws:
java.lang.Exception