Class DeleteFileOnExitHook
java.lang.Object
io.netty.handler.codec.http.multipart.DeleteFileOnExitHook
DeleteFileOnExitHook.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Add to the hook and clean up when the program exits.static boolean
checkFileExist
(String file) Check in the hook files.static void
Remove from the pool to reduce space footprint.(package private) static void
runHook()
Clean up all the files.
-
Field Details
-
FILES
-
-
Constructor Details
-
DeleteFileOnExitHook
private DeleteFileOnExitHook()
-
-
Method Details
-
remove
Remove from the pool to reduce space footprint.- Parameters:
file
- tmp file path
-
add
Add to the hook and clean up when the program exits.- Parameters:
file
- tmp file path
-
checkFileExist
Check in the hook files.- Parameters:
file
- target file- Returns:
- true or false
-
runHook
static void runHook()Clean up all the files.
-