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(File fileToAdd)Adds 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.voidZipFile. addFile(String fileToAdd)Adds 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.voidZipFile. addFiles(List<File> filesToAdd)Adds 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.voidZipFile. addFolder(File folderToAdd)Adds 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(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.StringZipFile. getComment()Returns the comment set for the Zip fileFileHeaderZipFile. getFileHeader(String fileName)Returns FileHeader if a file header with the given fileHeader string exists in the zip model: If not returns nullList<FileHeader>ZipFile. getFileHeaders()Returns the list of file headers in the zip file.List<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 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)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 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 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 FileHeaderFileHeaderFactory. 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 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(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 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)voidAsyncZipTask. execute(T taskParameters)protected voidAsyncZipTask. verifyIfTaskIsCancelled() -
Uses of ZipException in net.lingala.zip4j.util
Methods in net.lingala.zip4j.util that throw ZipException Modifier and Type Method Description static 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)static List<File>FileUtils. getFilesInDirectoryRecursive(File path, ZipParameters zipParameters)static StringFileUtils. getRelativeFileName(File fileToAdd, ZipParameters zipParameters)static List<File>FileUtils. getSplitZipFiles(ZipModel zipModel)static StringFileUtils. getZipFileNameWithoutExtension(String zipFile)
-