org.sourcejammer.util
Class TempDirectoryManager
java.lang.Object
|
+--org.sourcejammer.util.TempDirectoryManager
- public class TempDirectoryManager
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)