Class AbstractExtractFileTask<T>

    • Method Detail

      • extractFile

        protected void extractFile​(ZipInputStream zipInputStream,
                                   FileHeader fileHeader,
                                   java.lang.String outputPath,
                                   java.lang.String newFileName,
                                   ProgressMonitor progressMonitor,
                                   byte[] readBuff)
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • assertCanonicalPathsAreSame

        private void assertCanonicalPathsAreSame​(java.io.File outputFile,
                                                 java.lang.String outputPath,
                                                 FileHeader fileHeader)
                                          throws java.io.IOException
        Throws:
        java.io.IOException
      • isSymbolicLink

        private boolean isSymbolicLink​(FileHeader fileHeader)
      • unzipFile

        private void unzipFile​(ZipInputStream inputStream,
                               java.io.File outputFile,
                               ProgressMonitor progressMonitor,
                               byte[] buff)
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • createSymLink

        private void createSymLink​(ZipInputStream zipInputStream,
                                   FileHeader fileHeader,
                                   java.io.File outputFile,
                                   ProgressMonitor progressMonitor)
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • readCompleteEntry

        private byte[] readCompleteEntry​(ZipInputStream zipInputStream,
                                         FileHeader fileHeader,
                                         ProgressMonitor progressMonitor)
                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • verifyNextEntry

        private void verifyNextEntry​(ZipInputStream zipInputStream,
                                     FileHeader fileHeader)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • checkOutputDirectoryStructure

        private void checkOutputDirectoryStructure​(java.io.File outputFile)
                                            throws ZipException
        Throws:
        ZipException
      • determineOutputFile

        private java.io.File determineOutputFile​(FileHeader fileHeader,
                                                 java.lang.String outputPath,
                                                 java.lang.String newFileName)
      • getFileNameWithSystemFileSeparators

        private java.lang.String getFileNameWithSystemFileSeparators​(java.lang.String fileNameToReplace)
      • getZipModel

        public ZipModel getZipModel()