Top Description Fields Constructors Methods
java.io

pack-priv Class DeleteOnExitHook

extends Object
Class Inheritance
Imports
java.util.*, jdk.internal.access.SharedSecrets

This class holds a set of filenames to be deleted on VM exit through a shutdown hook. A set is used both to prevent double-insertion of the same file as well as offer quick removal.

Field Summary

Modifier and TypeField and Description
private static LinkedHashSet<String>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static synchronized void
add(String file)

pack-priv static void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

filesback to summary
private static LinkedHashSet<String> files

Constructor Detail

DeleteOnExitHookback to summary
private DeleteOnExitHook()

Method Detail

addback to summary
pack-priv static synchronized void add(String file)
runHooksback to summary
pack-priv static void runHooks()