Class DeleteFileOnExitHook
java.lang.Object
io.netty.handler.codec.http.multipart.DeleteFileOnExitHook
DeleteFileOnExitHook.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidAdd to the hook and clean up when the program exits.static booleancheckFileExist(String file) Check in the hook files.static voidRemove from the pool to reduce space footprint.(package private) static voidrunHook()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.
-