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.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 archivevoidZipFile.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) static AESEngineAesCipherUtil.getAESEngine(byte[] derivedKey, AesKeyStrength aesKeyStrength) Get AES Engine using derived key and requested AES Key StrengthConstructors 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 TypeMethodDescriptionintAESEngine.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 TypeMethodDescriptionFileHeaderFactory.generateFileHeader(ZipParameters zipParameters, boolean isSplitZip, int currentDiskNumberStart, Charset charset, RawIO rawIO) static FileHeaderHeaderUtil.getFileHeader(ZipModel zipModel, String fileName) -
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) voidprotected voidAsyncZipTask.verifyIfTaskIsCancelled() -
Uses of ZipException in net.lingala.zip4j.util
Methods in net.lingala.zip4j.util that throw ZipExceptionModifier and TypeMethodDescriptionstatic voidFileUtils.assertFilesExist(List<File> files, ZipParameters.SymbolicLinkAction symLinkAction) 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)