| java.lang.Object org.netbeans.installer.sandbox.utils.ZipPackUtils
ZipPackUtils | public class ZipPackUtils (Code) | | author: Dmitry Lipin |
Method Summary | |
public static void | packFile(File file, List<String> includes) Packs the file. | public static List<String> | unpackFile(File file) Unpacks the file. | public static List<File> | unzip(File zipfile, String outputDir, boolean unpack, boolean useZipModificationTime, Progress progress) Unzip file filename to the directory outpuDir. | public static List<File> | unzip(File zipfile, File outputDir, boolean unpack, boolean useZipModificationTime, Progress progress) Unzip file filename to the directory outpuDir. | public static List<File> | unzip(String filename, File outputDir, boolean unpack, boolean useZipModificationTime, Progress progress) Unzip file filename to the directory outpuDir. | public static List<File> | unzip(String filename, String outputDir, boolean unpack, boolean useZipModificationTime, Progress progress) Unzip file filename to the directory outpuDir. |
packFile | public static void packFile(File file, List<String> includes)(Code) | | Packs the file. If the file is a directory is will be navigated recursively.
Parameters: file - File to pack. Parameters: includes - Includes list for packer. |
unpackFile | public static List<String> unpackFile(File file) throws IOException(Code) | | Unpacks the file. If the file is a directory it is browsed recursively.
Parameters: file - Fiel to unpack throws: java.io.IOException - if an I/O error occurs List of unpacked files |
unzip | public static List<File> unzip(File zipfile, String outputDir, boolean unpack, boolean useZipModificationTime, Progress progress)(Code) | | Unzip file filename to the directory outpuDir.
List of unzipped files (null if filename or outputDir is null) Parameters: zipfile - ZIP file Parameters: outputDir - Directory for ZIP file to be extracted Parameters: unpack - Unpack or not packed files (.pack.gz) Parameters: useZipModificationTime - Set modification time of unzipped file to zip entry time Parameters: progress - Progress instance to display detail and set percentage. If progress is null then nothing would be displayed Parameters: conditionList - List of conditions to be added to every item ofreturning InstallationFileObject |
unzip | public static List<File> unzip(File zipfile, File outputDir, boolean unpack, boolean useZipModificationTime, Progress progress)(Code) | | Unzip file filename to the directory outpuDir.
List of unzipped files.If filename or outputDir is null then return null. Parameters: zipfile - ZIP file name Parameters: outputDir - Directory for ZIP file to be extracted Parameters: unpack - Unpack or not packed files (.pack.gz) Parameters: useZipModificationTime - Set modification time of unzipped file to zip entry time Parameters: progress - Progress instance to display detail and set percentage. If progress is null then nothing would bedisplayed. |
unzip | public static List<File> unzip(String filename, File outputDir, boolean unpack, boolean useZipModificationTime, Progress progress)(Code) | | Unzip file filename to the directory outpuDir.
List of unzipped files (null if filename or outputDir is null) Parameters: filename - ZIP file name Parameters: outputDir - Directory for ZIP file to be extracted Parameters: unpack - Unpack or not packed files (.pack.gz) Parameters: useZipModificationTime - Set modification time of unzipped file to zip entry time Parameters: progress - Progress instance to display detail and set percentage. If progress is null then nothing would be displayed |
unzip | public static List<File> unzip(String filename, String outputDir, boolean unpack, boolean useZipModificationTime, Progress progress)(Code) | | Unzip file filename to the directory outpuDir.
List of unzipped files.If filename or outputDir is null then return null Parameters: filename - ZIP file name Parameters: outputDir - Directory for ZIP file to be extracted Parameters: unpack - Unpack or not packed files (.pack.gz) Parameters: useZipModificationTime - If set modification time of unzipped file to zip entry time Parameters: progress - Progress instance to display detail and set percentage. Parameters: conditionList - List of conditions If progress is null then nothing would be displayed |
|
|