Uses of Class
net.lingala.zip4j.exception.ZipException
Packages that use ZipException
Package
Description
-
Uses of ZipException in net.lingala.zip4j
Methods in net.lingala.zip4j that throw ZipExceptionModifier and TypeMethodDescriptionvoidAdds input source file to the zip file with default zip parameters.voidZipFile.addFile(File fileToAdd, ZipParameters parameters) Adds input source file to the zip file.voidAdds input source file to the zip file with default zip parameters.voidZipFile.addFile(String fileToAdd, ZipParameters zipParameters) Adds input source file to the zip file with provided zip parameters.voidAdds the list of input files to the zip file with default zip parameters.voidZipFile.addFiles(List<File> filesToAdd, ZipParameters parameters) Adds the list of input files to the zip file.voidAdds the folder in the given file object to the zip file with default zip parameters.voidZipFile.addFolder(File folderToAdd, ZipParameters zipParameters) Adds the folder in the given file object to the zip file.private voidZipFile.addFolder(File folderToAdd, ZipParameters zipParameters, boolean checkSplitArchive) Internal method to add a folder to the zip file.voidZipFile.addStream(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(InputStream inputStream, ZipParameters parameters, boolean splitArchive, long splitLength) Creates a split zip file from the input stream if splitArchive flag is set to true.voidZipFile.createSplitZipFile(List<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(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(String destinationPath) Extracts all the files in the given zip file to the input destination path.voidZipFile.extractAll(String destinationPath, UnzipParameters unzipParameters) Extracts all entries in the zip file to the destination path considering the options defined in UnzipParametersvoidZipFile.extractFile(String fileName, String destinationPath) Extracts a specific file from the zip file to the destination path.voidZipFile.extractFile(String fileName, String destinationPath, String newFileName) Extracts a specific file from the zip file to the destination path.voidZipFile.extractFile(String fileName, String destinationPath, String newFileName, UnzipParameters unzipParameters) Extracts a specific file from the zip file to the destination path.voidZipFile.extractFile(String fileName, String destinationPath, UnzipParameters unzipParameters) Extracts a specific file from the zip file to the destination path.voidZipFile.extractFile(FileHeader fileHeader, String destinationPath) Extracts a specific file from the zip file to the destination path.voidZipFile.extractFile(FileHeader fileHeader, String destinationPath, String newFileName) Extracts a specific file from the zip file to the destination path.voidZipFile.extractFile(FileHeader fileHeader, String destinationPath, String newFileName, UnzipParameters unzipParameters) Extracts a specific file from the zip file to the destination path.voidZipFile.extractFile(FileHeader fileHeader, String destinationPath, UnzipParameters unzipParameters) Extracts a specific file from the zip file to the destination path.ZipFile.getComment()Returns the comment set for the Zip fileZipFile.getFileHeader(String fileName) Returns FileHeader if a file header with the given fileHeader string exists in the zip model: If not returns nullZipFile.getFileHeaders()Returns the list of file headers in the zip 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(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(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(List<String> fileNames) Removes all files from the zip file that match the names in the input list.voidZipFile.renameFile(String fileNameToRename, String newFileName) Renames file name of the entry represented by input fileNameToRename.voidZipFile.renameFile(FileHeader fileHeader, String newFileName) Renames file name of the entry represented by file header.voidZipFile.renameFiles(Map<String, 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(String comment) Sets comment for the Zip file -
Uses of ZipException in net.lingala.zip4j.crypto
Methods in net.lingala.zip4j.crypto that throw ZipExceptionModifier and TypeMethodDescriptionintAESDecrypter.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 ZipExceptionModifierConstructorDescriptionAESDecrypter(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 ZipExceptionModifier and TypeMethodDescriptionprivate 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 -
Uses of ZipException in net.lingala.zip4j.headers
Methods in net.lingala.zip4j.headers that throw ZipExceptionModifier and TypeMethodDescriptionprivate Zip64EndOfCentralDirectoryRecordHeaderWriter.buildZip64EndOfCentralDirectoryRecord(ZipModel zipModel, int sizeOfCentralDir, long offsetCentralDir) private longHeaderWriter.countNumberOfFileHeaderEntriesOnDisk(List<FileHeader> fileHeaders, int numOfDisk) private AESExtraDataRecordFileHeaderFactory.generateAESExtraDataRecord(ZipParameters parameters) FileHeaderFactory.generateFileHeader(ZipParameters zipParameters, boolean isSplitZip, int currentDiskNumberStart, Charset charset, RawIO rawIO) static FileHeaderHeaderUtil.getFileHeader(ZipModel zipModel, String fileName) private static FileHeaderHeaderUtil.getFileHeaderWithExactMatch(ZipModel zipModel, String fileName) private AESExtraDataRecordHeaderReader.readAesExtraDataRecord(List<ExtraDataRecord> extraDataRecords, RawIO rawIO) private voidHeaderReader.readAesExtraDataRecord(AbstractFileHeader fileHeader, RawIO rawIO) private voidHeaderReader.readZip64ExtendedInfo(LocalFileHeader localFileHeader, RawIO rawIO) private StringFileHeaderFactory.validateAndGetFileName(String fileNameInZip) private voidHeaderWriter.writeCentralDirectory(ZipModel zipModel, ByteArrayOutputStream byteArrayOutputStream, RawIO rawIO, Charset charset) private voidHeaderWriter.writeFileHeader(ZipModel zipModel, FileHeader fileHeader, ByteArrayOutputStream byteArrayOutputStream, RawIO rawIO, Charset charset) -
Uses of ZipException in net.lingala.zip4j.io.inputstream
Methods in net.lingala.zip4j.io.inputstream that throw ZipExceptionModifier and TypeMethodDescriptionprivate 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 ZipExceptionModifier and TypeMethodDescriptionbooleanSplitOutputStream.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 ZipExceptionModifierConstructorDescriptionSplitOutputStream(File file) SplitOutputStream(File file, long splitLength) -
Uses of ZipException in net.lingala.zip4j.model.enums
Methods in net.lingala.zip4j.model.enums that throw ZipExceptionModifier and TypeMethodDescriptionstatic 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 ZipExceptionModifier and TypeMethodDescriptionprotected 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(List<File> filesToAdd, ZipParameters zipParameters) private voidAbstractExtractFileTask.checkOutputDirectoryStructure(File outputFile) (package private) voidAbstractModifyFileTask.cleanupFile(boolean successFlag, File zipFile, File temporaryZipFile) AddFilesToZipTask.determineActualFilesToAdd(AddFilesToZipTask.AddFilesToZipTaskParameters taskParameters) voidRemoveFilesFromZipTask.filterNonExistingEntries(List<String> filesToRemove) RenameFilesTask.filterNonExistingEntriesAndAddSeparatorIfNeeded(Map<String, String> inputFileNamesMap) private List<FileHeader> ExtractFileTask.getFileHeadersToExtract(String fileNameToExtract) AddFolderToZipTask.getFilesToAdd(AddFolderToZipTask.AddFolderToZipTaskParameters taskParameters) private intAbstractModifyFileTask.getIndexOfFileHeader(List<FileHeader> allFileHeaders, FileHeader fileHeaderForIndex) private StringRenameFilesTask.getNewFileName(String newFileName, String oldFileName, String fileNameFromHeaderToBeChanged) (package private) longAbstractModifyFileTask.getOffsetOfNextEntry(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, String fileNameInZip, ProgressMonitor progressMonitor) AbstractAddFileToZipTask.removeFilesIfExists(List<File> files, ZipParameters zipParameters, ProgressMonitor progressMonitor, Zip4jConfig zip4jConfig) private voidAbstractModifyFileTask.restoreFileName(File zipFile, File temporaryZipFile) private voidRemoveFilesFromZipTask.updateHeaders(List<FileHeader> sortedFileHeaders, FileHeader fileHeaderThatWasRemoved, long offsetToSubtract) private voidRenameFilesTask.updateHeadersInZipModel(List<FileHeader> sortedFileHeaders, FileHeader fileHeader, String newFileName, byte[] newFileNameBytes, int headersOffset) (package private) voidAbstractModifyFileTask.updateOffsetsForAllSubsequentFileHeaders(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 ZipExceptionModifier and TypeMethodDescriptionprivate static voidFileUtils.assertFileExists(File file) static voidFileUtils.assertFilesExist(List<File> files, ZipParameters.SymbolicLinkAction symLinkAction) private static voidFileUtils.assertSymbolicLinkTargetExists(File file) static voidFileUtils.copyFile(RandomAccessFile randomAccessFile, OutputStream outputStream, long start, long end, ProgressMonitor progressMonitor, int bufferSize) static booleanZip4jUtil.createDirectoryIfNotExists(File file) static CompressionMethodZip4jUtil.getCompressionMethod(AbstractFileHeader localFileHeader) FileUtils.getFilesInDirectoryRecursive(File path, ZipParameters zipParameters) static StringFileUtils.getRelativeFileName(File fileToAdd, ZipParameters zipParameters) FileUtils.getSplitZipFiles(ZipModel zipModel) static StringFileUtils.getZipFileNameWithoutExtension(String zipFile)