public class ExtractionManager extends Object
| Constructor and Description |
|---|
ExtractionManager() |
| Modifier and Type | Method and Description |
|---|---|
static void |
cleanUp(File home)
Utility to clean up home.
|
static void |
cleanUp(File home,
Boolean force)
Utility to clean up home.
|
static void |
cleanUpHook(File home)
Add a shutdown hook to clean up at end.
|
static void |
close(Closeable closeable)
Utility to close in silence.
|
static File |
createTempDir()
Create a new temporary directory.
|
static boolean |
delete(File from)
Utility to delete file (directory or single file)
|
static boolean |
explode(String location,
File home)
Explode libraries and make a clean before if necessary.
|
static void |
initialize(Map<String,String> arguments)
Initialize clean up directive.
|
public static void initialize(Map<String,String> arguments)
arguments - public static boolean explode(String location, File home)
location - inner jar locationhome - home directory to explodepublic static void cleanUp(File home)
home - directory to cleanpublic static void cleanUp(File home, Boolean force)
home - directory to cleanforce - if true try to clean all sub directory.public static void cleanUpHook(File home)
home - public static File createTempDir() throws IOException
#recursiveDelete(File) to clean this directory up since it isn't
deleted automaticallyIOException - if there is an error creating the temporary directorypublic static void close(Closeable closeable)
closeable - instance to closepublic static boolean delete(File from)
from - Deletes the file or directory denoted by this abstract
pathname.Copyright © 2010–2014 Intelligents-ia. All rights reserved.