|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectzeroslackr.installer.Extractor
public abstract class Extractor
Abstract Extractor Class.
Methods for extracting archives.
Licensed under GNU GPL (Version 3).
Sources: SDN "Compressing and Decompressing Data using Java", ICE Engineering's tar package API, Jigsaw's Md5 class API
Constructor Summary | |
---|---|
Extractor()
|
Method Summary | |
---|---|
static boolean |
extract(String file,
String dest)
Extracts an archive to a specified location. |
private static void |
extractGz(String file,
String dest)
Extracts .gz archives. |
private static void |
extractTarGz(String file,
String dest)
Extracts .tar.gz archives. |
private static void |
extractZip(String file,
String dest)
Extracts .zip archives. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Extractor()
Method Detail |
---|
public static boolean extract(String file, String dest) throws IOException
file
- String of file location.dest
- String of destination folder/file.
IOException
private static void extractZip(String file, String dest) throws IOException
IOException
extract(String file, String dest)
private static void extractGz(String file, String dest) throws IOException
IOException
extract(String file, String dest)
private static void extractTarGz(String file, String dest) throws IOException
IOException
extract(String file, String dest)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |