Uses of Class
net.lingala.zip4j.exception.ZipException
-
-
Uses of ZipException in net.lingala.zip4j
Methods in net.lingala.zip4j that throw ZipException Modifier and Type Method Description voidZipFile. addFile(java.io.File fileToAdd)Adds input source file to the zip file with default zip parameters.voidZipFile. addFile(java.io.File fileToAdd, ZipParameters parameters)Adds input source file to the zip file.voidZipFile. addFile(java.lang.String fileToAdd)Adds input source file to the zip file with default zip parameters.voidZipFile. addFile(java.lang.String fileToAdd, ZipParameters zipParameters)Adds input source file to the zip file with provided zip parameters.voidZipFile. addFiles(java.util.List<java.io.File> filesToAdd)Adds the list of input files to the zip file with default zip parameters.voidZipFile. addFiles(java.util.List<java.io.File> filesToAdd, ZipParameters parameters)Adds the list of input files to the zip file.voidZipFile. addFolder(java.io.File folderToAdd)Adds the folder in the given file object to the zip file with default zip parameters.voidZipFile. addFolder(java.io.File folderToAdd, ZipParameters zipParameters)Adds the folder in the given file object to the zip file.private voidZipFile. addFolder(java.io.File folderToAdd, ZipParameters zipParameters, boolean checkSplitArchive)Internal method to add a folder to the zip file.voidZipFile. addStream(java.io.InputStream inputStream, ZipParameters parameters)Creates a new entry in the zip file and adds the content of the input stream to the zip file.voidZipFile. createSplitZipFile(java.util.List<java.io.File> filesToAdd, ZipParameters parameters, boolean splitArchive, long splitLength)Creates a zip file and adds the list of source file(s) to the zip file.voidZipFile. createSplitZipFileFromFolder(java.io.File folderToAdd, ZipParameters parameters, boolean splitArchive, long splitLength)Creates a zip file and adds the files/folders from the specified folder to the zip file.voidZipFile. extractAll(java.lang.String destinationPath)Extracts all the files in the given zip file to the input destination path.voidZipFile. extractAll(java.lang.String destinationPath, UnzipParameters unzipParameters)Extracts all entries in the zip file to the destination path considering the options defined in UnzipParametersvoidZipFile. extractFile(java.lang.String fileName, java.lang.String destinationPath)Extracts a specific file from the zip file to the destination path.voidZipFile. extractFile(java.lang.String fileName, java.lang.String destinationPath, java.lang.String newFileName)Extracts a specific file from the zip file to the destination path.voidZipFile. extractFile(java.lang.String fileName, java.lang.String destinationPath, java.lang.String newFileName, UnzipParameters unzipParameters)Extracts a specific file from the zip file to the destination path.voidZipFile. extractFile(java.lang.String fileName, java.lang.String destinationPath, UnzipParameters unzipParameters)Extracts a specific file from the zip file to the destination path.voidZipFile. extractFile(FileHeader fileHeader, java.lang.String destinationPath)Extracts a specific file from the zip file to the destination path.voidZipFile. extractFile(FileHeader fileHeader, java.lang.String destinationPath, java.lang.String newFileName)Extracts a specific file from the zip file to the destination path.voidZipFile. extractFile(FileHeader fileHeader, java.lang.String destinationPath, java.lang.String newFileName, UnzipParameters unzipParameters)Extracts a specific file from the zip file to the destination path.voidZipFile. extractFile(FileHeader fileHeader, java.lang.String destinationPath, UnzipParameters unzipParameters)Extracts a specific file from the zip file to the destination path.java.lang.StringZipFile. getComment()Returns the comment set for the Zip fileFileHeaderZipFile. getFileHeader(java.lang.String fileName)Returns FileHeader if a file header with the given fileHeader string exists in the zip model: If not returns nulljava.util.List<FileHeader>ZipFile. getFileHeaders()Returns the list of file headers in the zip file.java.util.List<java.io.File>ZipFile. getSplitZipFiles()Returns the full file path+names of all split zip files in an ArrayList.booleanZipFile. isEncrypted()Checks to see if the zip file is encryptedbooleanZipFile. isSplitArchive()Checks if the zip file is a split archivevoidZipFile. mergeSplitFiles(java.io.File outputZipFile)Merges split zip files into a single zip file without the need to extract the files in the archiveprivate voidZipFile. readZipInfo()Reads the zip header information for this zip file.voidZipFile. removeFile(java.lang.String fileName)Removes the file provided in the input parameters from the zip file.voidZipFile. removeFile(FileHeader fileHeader)Removes the file provided in the input file header from the zip file.voidZipFile. removeFiles(java.util.List<java.lang.String> fileNames)Removes all files from the zip file that match the names in the input list.voidZipFile. renameFile(java.lang.String fileNameToRename, java.lang.String newFileName)Renames file name of the entry represented by input fileNameToRename.voidZipFile. renameFile(FileHeader fileHeader, java.lang.String newFileName)Renames file name of the entry represented by file header.voidZipFile. renameFiles(java.util.Map<java.lang.String,java.lang.String> fileNamesMap)Renames all the entries in the zip file that match the keys in the map to their corresponding values in the map.voidZipFile. setComment(java.lang.String comment)Sets comment for the Zip file -
Uses of ZipException in net.lingala.zip4j.crypto
Methods in net.lingala.zip4j.crypto that throw ZipException Modifier and Type Method Description intAESDecrypter. decryptData(byte[] buff, int start, int len)intDecrypter. decryptData(byte[] buff, int start, int len)intStandardDecrypter. decryptData(byte[] buff, int start, int len)static byte[]AesCipherUtil. derivePasswordBasedKey(byte[] salt, char[] password, AesKeyStrength aesKeyStrength, boolean useUtf8ForPassword)Derive Password-Based Key for AES according to AE-1 and AE-2 SpecificationsintAESEncrypter. encryptData(byte[] buff)intAESEncrypter. encryptData(byte[] buff, int start, int len)intEncrypter. encryptData(byte[] buff)intEncrypter. encryptData(byte[] buff, int start, int len)intStandardEncrypter. encryptData(byte[] buff)intStandardEncrypter. encryptData(byte[] buff, int start, int len)private byte[]AESEncrypter. generateSalt(int size)static AESEngineAesCipherUtil. getAESEngine(byte[] derivedKey, AesKeyStrength aesKeyStrength)Get AES Engine using derived key and requested AES Key Strengthprivate voidAESDecrypter. init(byte[] salt, byte[] passwordVerifier, char[] password, AESExtraDataRecord aesExtraDataRecord, boolean useUtf8ForPassword)private voidAESEncrypter. init(char[] password, AesKeyStrength aesKeyStrength, boolean useUtf8ForPassword)private voidStandardDecrypter. init(byte[] headerBytes, char[] password, long lastModifiedFileTime, long crc, boolean useUtf8ForPassword)private voidStandardEncrypter. init(char[] password, long key, boolean useUtf8ForPassword)Constructors in net.lingala.zip4j.crypto that throw ZipException Constructor Description AESDecrypter(AESExtraDataRecord aesExtraDataRecord, char[] password, byte[] salt, byte[] passwordVerifier, boolean useUtf8ForPassword)AESEncrypter(char[] password, AesKeyStrength aesKeyStrength, boolean useUtf8ForPassword)StandardDecrypter(char[] password, long crc, long lastModifiedFileTime, byte[] headerBytes, boolean useUtf8ForPassword)StandardEncrypter(char[] password, long key, boolean useUtf8ForPassword) -
Uses of ZipException in net.lingala.zip4j.crypto.engine
Methods in net.lingala.zip4j.crypto.engine that throw ZipException Modifier and Type Method Description private int[][]AESEngine. generateWorkingKey(byte[] key)private voidAESEngine. init(byte[] key)intAESEngine. processBlock(byte[] in, byte[] out)intAESEngine. processBlock(byte[] in, int inOff, byte[] out, int outOff)Constructors in net.lingala.zip4j.crypto.engine that throw ZipException Constructor Description AESEngine(byte[] key) -
Uses of ZipException in net.lingala.zip4j.headers
Methods in net.lingala.zip4j.headers that throw ZipException Modifier and Type Method Description private Zip64EndOfCentralDirectoryRecordHeaderWriter. buildZip64EndOfCentralDirectoryRecord(ZipModel zipModel, int sizeOfCentralDir, long offsetCentralDir)private longHeaderWriter. countNumberOfFileHeaderEntriesOnDisk(java.util.List<FileHeader> fileHeaders, int numOfDisk)private AESExtraDataRecordFileHeaderFactory. generateAESExtraDataRecord(ZipParameters parameters)FileHeaderFileHeaderFactory. generateFileHeader(ZipParameters zipParameters, boolean isSplitZip, int currentDiskNumberStart, java.nio.charset.Charset charset, RawIO rawIO)static FileHeaderHeaderUtil. getFileHeader(ZipModel zipModel, java.lang.String fileName)private static FileHeaderHeaderUtil. getFileHeaderWithExactMatch(ZipModel zipModel, java.lang.String fileName)private AESExtraDataRecordHeaderReader. readAesExtraDataRecord(java.util.List<ExtraDataRecord> extraDataRecords, RawIO rawIO)private voidHeaderReader. readAesExtraDataRecord(AbstractFileHeader fileHeader, RawIO rawIO)private voidHeaderReader. readZip64ExtendedInfo(LocalFileHeader localFileHeader, RawIO rawIO)private java.lang.StringFileHeaderFactory. validateAndGetFileName(java.lang.String fileNameInZip)private voidHeaderWriter. writeCentralDirectory(ZipModel zipModel, java.io.ByteArrayOutputStream byteArrayOutputStream, RawIO rawIO, java.nio.charset.Charset charset)private voidHeaderWriter. writeFileHeader(ZipModel zipModel, FileHeader fileHeader, java.io.ByteArrayOutputStream byteArrayOutputStream, RawIO rawIO, java.nio.charset.Charset charset) -
Uses of ZipException in net.lingala.zip4j.io.inputstream
Methods in net.lingala.zip4j.io.inputstream that throw ZipException Modifier and Type Method Description private intZipInputStream. getAesEncryptionHeaderSize(AESExtraDataRecord aesExtraDataRecord)private longZipInputStream. getCompressedSize(LocalFileHeader localFileHeader)private intZipInputStream. getEncryptionHeaderSize(LocalFileHeader localFileHeader)private DecompressedInputStreamZipInputStream. initializeDecompressorForThisEntry(CipherInputStream<?> cipherInputStream, LocalFileHeader localFileHeader) -
Uses of ZipException in net.lingala.zip4j.io.outputstream
Methods in net.lingala.zip4j.io.outputstream that throw ZipException Modifier and Type Method Description booleanSplitOutputStream. checkBufferSizeAndStartNextSplitFile(int bufferSize)Checks if the buffer size is sufficient for the current split file.booleanCountingOutputStream. checkBuffSizeAndStartNextSplitFile(int bufferSize)Constructors in net.lingala.zip4j.io.outputstream that throw ZipException Constructor Description SplitOutputStream(java.io.File file)SplitOutputStream(java.io.File file, long splitLength) -
Uses of ZipException in net.lingala.zip4j.model.enums
Methods in net.lingala.zip4j.model.enums that throw ZipException Modifier and Type Method Description static CompressionMethodCompressionMethod. getCompressionMethodFromCode(int code)Get the CompressionMethod for a given ZIP file codestatic AesVersionAesVersion. getFromVersionNumber(int versionNumber)Get the AESVersion instance from an integer AES version number -
Uses of ZipException in net.lingala.zip4j.tasks
Methods in net.lingala.zip4j.tasks that throw ZipException Modifier and Type Method Description protected longAddFilesToZipTask. calculateTotalWork(AddFilesToZipTask.AddFilesToZipTaskParameters taskParameters)protected longAddFolderToZipTask. calculateTotalWork(AddFolderToZipTask.AddFolderToZipTaskParameters taskParameters)protected abstract longAsyncZipTask. calculateTotalWork(T taskParameters)protected longExtractFileTask. calculateTotalWork(ExtractFileTask.ExtractFileTaskParameters taskParameters)(package private) longAbstractAddFileToZipTask. calculateWorkForFiles(java.util.List<java.io.File> filesToAdd, ZipParameters zipParameters)private voidAbstractExtractFileTask. checkOutputDirectoryStructure(java.io.File outputFile)(package private) voidAbstractModifyFileTask. cleanupFile(boolean successFlag, java.io.File zipFile, java.io.File temporaryZipFile)private java.util.List<java.io.File>AddFilesToZipTask. determineActualFilesToAdd(AddFilesToZipTask.AddFilesToZipTaskParameters taskParameters)voidAsyncZipTask. execute(T taskParameters)private java.util.List<java.lang.String>RemoveFilesFromZipTask. filterNonExistingEntries(java.util.List<java.lang.String> filesToRemove)private java.util.Map<java.lang.String,java.lang.String>RenameFilesTask. filterNonExistingEntriesAndAddSeparatorIfNeeded(java.util.Map<java.lang.String,java.lang.String> inputFileNamesMap)private java.util.List<FileHeader>ExtractFileTask. getFileHeadersToExtract(java.lang.String fileNameToExtract)private java.util.List<java.io.File>AddFolderToZipTask. getFilesToAdd(AddFolderToZipTask.AddFolderToZipTaskParameters taskParameters)private intAbstractModifyFileTask. getIndexOfFileHeader(java.util.List<FileHeader> allFileHeaders, FileHeader fileHeaderForIndex)private java.lang.StringRenameFilesTask. getNewFileName(java.lang.String newFileName, java.lang.String oldFileName, java.lang.String fileNameFromHeaderToBeChanged)(package private) longAbstractModifyFileTask. getOffsetOfNextEntry(java.util.List<FileHeader> sortedFileHeaders, FileHeader fileHeader, ZipModel zipModel)private voidAsyncZipTask. performTaskWithErrorHandling(T taskParameters, ProgressMonitor progressMonitor)(package private) voidAbstractAddFileToZipTask. removeFile(FileHeader fileHeader, ProgressMonitor progressMonitor, Zip4jConfig zip4jConfig)private voidAddStreamToZipTask. removeFileIfExists(ZipModel zipModel, Zip4jConfig zip4jConfig, java.lang.String fileNameInZip, ProgressMonitor progressMonitor)private java.util.List<java.io.File>AbstractAddFileToZipTask. removeFilesIfExists(java.util.List<java.io.File> files, ZipParameters zipParameters, ProgressMonitor progressMonitor, Zip4jConfig zip4jConfig)private voidAbstractModifyFileTask. restoreFileName(java.io.File zipFile, java.io.File temporaryZipFile)private voidRemoveFilesFromZipTask. updateHeaders(java.util.List<FileHeader> sortedFileHeaders, FileHeader fileHeaderThatWasRemoved, long offsetToSubtract)private voidRenameFilesTask. updateHeadersInZipModel(java.util.List<FileHeader> sortedFileHeaders, FileHeader fileHeader, java.lang.String newFileName, byte[] newFileNameBytes, int headersOffset)(package private) voidAbstractModifyFileTask. updateOffsetsForAllSubsequentFileHeaders(java.util.List<FileHeader> sortedFileHeaders, ZipModel zipModel, FileHeader fileHeaderModified, long offsetToAdd)protected voidAsyncZipTask. verifyIfTaskIsCancelled()(package private) voidAbstractAddFileToZipTask. verifyZipParameters(ZipParameters parameters) -
Uses of ZipException in net.lingala.zip4j.util
Methods in net.lingala.zip4j.util that throw ZipException Modifier and Type Method Description private static voidFileUtils. assertFileExists(java.io.File file)static voidFileUtils. assertFilesExist(java.util.List<java.io.File> files, ZipParameters.SymbolicLinkAction symLinkAction)private static voidFileUtils. assertSymbolicLinkTargetExists(java.io.File file)static voidFileUtils. copyFile(java.io.RandomAccessFile randomAccessFile, java.io.OutputStream outputStream, long start, long end, ProgressMonitor progressMonitor, int bufferSize)static booleanZip4jUtil. createDirectoryIfNotExists(java.io.File file)static CompressionMethodZip4jUtil. getCompressionMethod(AbstractFileHeader localFileHeader)static java.util.List<java.io.File>FileUtils. getFilesInDirectoryRecursive(java.io.File path, ZipParameters zipParameters)static java.lang.StringFileUtils. getRelativeFileName(java.io.File fileToAdd, ZipParameters zipParameters)static java.util.List<java.io.File>FileUtils. getSplitZipFiles(ZipModel zipModel)static java.lang.StringFileUtils. getZipFileNameWithoutExtension(java.lang.String zipFile)
-