Thread.State, Thread.UncaughtExceptionHandlerMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Modifier and Type | Method and Description |
|---|---|
void |
addFile(String filename)
Schedules a file for deletion.
|
static DeleteOnExit |
getInstance()
Returns our singleton instance, creating it if necessary.
|
void |
run()
Does the actual work.
|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, parkFor$, parkUntil$, popInterruptAction$, pushInterruptAction$, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, unpark$, yieldpublic static DeleteOnExit getInstance()
public void addFile(String filename)
filename - The file to delete.public void run()
run in interface Runnablerun in class ThreadThread.start()