Class AbstractExtractFileTask<T>
java.lang.Object
net.lingala.zip4j.tasks.AsyncZipTask<T>
net.lingala.zip4j.tasks.AbstractExtractFileTask<T>
- Direct Known Subclasses:
ExtractAllFilesTask, ExtractFileTask
-
Nested Class Summary
Nested classes/interfaces inherited from class AsyncZipTask
AsyncZipTask.AsyncTaskParameters -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAbstractExtractFileTask(ZipModel zipModel, UnzipParameters unzipParameters, AsyncZipTask.AsyncTaskParameters asyncTaskParameters) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidassertCanonicalPathsAreSame(File outputFile, String outputPath, FileHeader fileHeader) private voidcheckOutputDirectoryStructure(File outputFile) private voidcreateSymLink(ZipInputStream zipInputStream, FileHeader fileHeader, File outputFile, ProgressMonitor progressMonitor) private FiledetermineOutputFile(FileHeader fileHeader, String outputPath, String newFileName) protected voidextractFile(ZipInputStream zipInputStream, FileHeader fileHeader, String outputPath, String newFileName, ProgressMonitor progressMonitor, byte[] readBuff) private StringgetFileNameWithSystemFileSeparators(String fileNameToReplace) protected ProgressMonitor.TaskgetTask()private booleanisSymbolicLink(FileHeader fileHeader) private byte[]readCompleteEntry(ZipInputStream zipInputStream, FileHeader fileHeader, ProgressMonitor progressMonitor) private voidunzipFile(ZipInputStream inputStream, File outputFile, ProgressMonitor progressMonitor, byte[] buff) private voidverifyNextEntry(ZipInputStream zipInputStream, FileHeader fileHeader) Methods inherited from class AsyncZipTask
calculateTotalWork, execute, executeTask, verifyIfTaskIsCancelled
-
Field Details
-
zipModel
-
unzipParameters
-
-
Constructor Details
-
AbstractExtractFileTask
public AbstractExtractFileTask(ZipModel zipModel, UnzipParameters unzipParameters, AsyncZipTask.AsyncTaskParameters asyncTaskParameters)
-
-
Method Details
-
extractFile
protected void extractFile(ZipInputStream zipInputStream, FileHeader fileHeader, String outputPath, String newFileName, ProgressMonitor progressMonitor, byte[] readBuff) throws IOException - Throws:
IOException
-
assertCanonicalPathsAreSame
private void assertCanonicalPathsAreSame(File outputFile, String outputPath, FileHeader fileHeader) throws IOException - Throws:
IOException
-
isSymbolicLink
-
unzipFile
private void unzipFile(ZipInputStream inputStream, File outputFile, ProgressMonitor progressMonitor, byte[] buff) throws IOException - Throws:
IOException
-
createSymLink
private void createSymLink(ZipInputStream zipInputStream, FileHeader fileHeader, File outputFile, ProgressMonitor progressMonitor) throws IOException - Throws:
IOException
-
readCompleteEntry
private byte[] readCompleteEntry(ZipInputStream zipInputStream, FileHeader fileHeader, ProgressMonitor progressMonitor) throws IOException - Throws:
IOException
-
verifyNextEntry
private void verifyNextEntry(ZipInputStream zipInputStream, FileHeader fileHeader) throws IOException - Throws:
IOException
-
checkOutputDirectoryStructure
- Throws:
ZipException
-
determineOutputFile
-
getFileNameWithSystemFileSeparators
-
getTask
- Specified by:
getTaskin classAsyncZipTask<T>
-
getZipModel
-