SourceJammer 1.3.0 November 20, 2002
Copyright (c) 2001, 2002 Robert MacGrogan

org.sourcejammer.util
Class TempDirectoryManager

java.lang.Object
  |
  +--org.sourcejammer.util.TempDirectoryManager

public class TempDirectoryManager
extends java.lang.Object


Method Summary
static void clearAllTempFiles()
          Remove all files in temp directory other than namer.
static void deleteTempFile(long id)
           
static java.io.File getNewTempFile()
           
static java.io.File getNewTempFile(long id)
           
static long getNextID()
          Gets the next unique ID from the Counter object.
static java.io.File getTempFileById(long id)
           
static byte[] getTempFileBytesById(long id)
           
static void main(java.lang.String[] args)
           
static long makeNewTempFile(byte[] by)
           
static void removeTempFiles(java.util.Date olderThanDate)
          Remove all files in temp directory (except namer) older than specified Date.
static long streamFromFileToTemp(java.io.File fl)
           
static void streamFromTempToFile(long tempFileID, java.io.File fl)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

clearAllTempFiles

public static void clearAllTempFiles()
Remove all files in temp directory other than namer.

removeTempFiles

public static void removeTempFiles(java.util.Date olderThanDate)
Remove all files in temp directory (except namer) older than specified Date.

getNextID

public static long getNextID()
                      throws java.io.IOException
Gets the next unique ID from the Counter object.

getNewTempFile

public static java.io.File getNewTempFile()
                                   throws java.io.IOException

getTempFileBytesById

public static byte[] getTempFileBytesById(long id)
                                   throws java.io.IOException

makeNewTempFile

public static long makeNewTempFile(byte[] by)
                            throws java.io.IOException

streamFromFileToTemp

public static long streamFromFileToTemp(java.io.File fl)
                                 throws java.io.IOException

streamFromTempToFile

public static void streamFromTempToFile(long tempFileID,
                                        java.io.File fl)
                                 throws java.io.IOException

getTempFileById

public static java.io.File getTempFileById(long id)
                                    throws java.io.IOException

getNewTempFile

public static java.io.File getNewTempFile(long id)
                                   throws java.io.IOException

deleteTempFile

public static void deleteTempFile(long id)
                           throws java.io.IOException

main

public static void main(java.lang.String[] args)

SourceJammer 1.3.0 November 20, 2002
Copyright (c) 2001, 2002 Robert MacGrogan