Uses of Class
net.lingala.zip4j.exception.ZipException
-
-
Uses of ZipException in net.lingala.zip4j.core
Methods in net.lingala.zip4j.core that throw ZipException Modifier and Type Method Description voidZipFile. addFile(File sourceFile, ZipParameters parameters)Adds input source file to the zip file.voidZipFile. addFiles(ArrayList sourceFileList, ZipParameters parameters)Adds the list of input files to the zip file.voidZipFile. addFolder(File path, ZipParameters parameters)Adds the folder in the given file object to the zip file.voidZipFile. addFolder(String path, ZipParameters parameters)Adds the folder in the given path to the zip file.voidZipFile. addStream(InputStream inputStream, ZipParameters parameters)Creates a new entry in the zip file and adds the content of the inputstream to the zip file.voidZipFile. createZipFile(File sourceFile, ZipParameters parameters)Creates a zip file and adds the source file to the zip file.voidZipFile. createZipFile(File sourceFile, ZipParameters parameters, boolean splitArchive, long splitLength)Creates a zip file and adds the source file to the zip file.voidZipFile. createZipFile(ArrayList sourceFileList, ZipParameters parameters)Creates a zip file and adds the list of source file(s) to the zip file.voidZipFile. createZipFile(ArrayList sourceFileList, ZipParameters parameters, boolean splitArchive, long splitLength)Creates a zip file and adds the list of source file(s) to the zip file.voidZipFile. createZipFileFromFolder(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. createZipFileFromFolder(String 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 destPath)Extracts all the files in the given zip file to the input destination path.voidZipFile. extractAll(String destPath, UnzipParameters unzipParameters)Extracts all the files in the given zip file to the input destination path.voidZipFile. extractFile(String fileName, String destPath)Extracts a specific file from the zip file to the destination path.voidZipFile. extractFile(String fileName, String destPath, UnzipParameters unzipParameters)Extracts a specific file from the zip file to the destination path.voidZipFile. extractFile(String fileName, String destPath, UnzipParameters unzipParameters, String newFileName)Extracts a specific file from the zip file to the destination path.voidZipFile. extractFile(FileHeader fileHeader, String destPath)Extracts a specific file from the zip file to the destination path.voidZipFile. extractFile(FileHeader fileHeader, String destPath, UnzipParameters unzipParameters)Extracts a specific file from the zip file to the destination path.voidZipFile. extractFile(FileHeader fileHeader, String destPath, UnzipParameters unzipParameters, String newFileName)Extracts a specific file from the zip file to the destination path.voidHeaderWriter. finalizeZipFile(ZipModel zipModel, OutputStream outputStream)Processes zip header data and writes this data to the zip filevoidHeaderWriter. finalizeZipFileWithoutValidations(ZipModel zipModel, OutputStream outputStream)Processes zip header data and writes this data to the zip file without any validations.StringZipFile. getComment()Returns the comment set for the Zip fileStringZipFile. getComment(String encoding)Returns the comment set for the Zip file in the input encodingFileHeaderZipFile. getFileHeader(String fileName)Returns FileHeader if a file header with the given fileHeader string exists in the zip model: If not returns nullListZipFile. getFileHeaders()Returns the list of file headers in the zip file.ZipInputStreamZipFile. getInputStream(FileHeader fileHeader)Returns an input stream for reading the contents of the Zip file corresponding to the input FileHeader.ArrayListZipFile. 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 archiveZipModelHeaderReader. readAllHeaders()Reads all the header information for the zip file.ZipModelHeaderReader. readAllHeaders(String fileNameCharset)Reads all the header information for the zip file.LocalFileHeaderHeaderReader. readLocalFileHeader(FileHeader fileHeader)Reads local file header for the given file headervoidZipFile. removeFile(String fileName)Removes the file provided in the input paramters from the zip file.voidZipFile. removeFile(FileHeader fileHeader)Removes the file provided in the input file header from the zip file.voidZipFile. setComment(String comment)Sets comment for the Zip filevoidZipFile. setFileNameCharset(String charsetName)Zip4j will encode all the file names with the input charset.voidZipFile. setPassword(char[] password)Sets the password for the zip filevoidZipFile. setPassword(String password)Sets the password for the zip file.
Note: For security reasons, usage of this method is discouraged.voidHeaderWriter. updateLocalFileHeader(LocalFileHeader localFileHeader, long offset, int toUpdate, ZipModel zipModel, byte[] bytesToWrite, int noOfDisk, SplitOutputStream outputStream)intHeaderWriter. writeExtendedLocalHeader(LocalFileHeader localFileHeader, OutputStream outputStream)intHeaderWriter. writeLocalFileHeader(ZipModel zipModel, LocalFileHeader localFileHeader, OutputStream outputStream)Constructors in net.lingala.zip4j.core that throw ZipException Constructor Description ZipFile(File zipFile)Creates a new Zip File Object with the input file.ZipFile(String zipFile)Creates a new Zip File Object with the given zip file path. -
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)intAESDecrypter. decryptData(byte[] buff, int start, int len)intIDecrypter. decryptData(byte[] buff)intIDecrypter. decryptData(byte[] buff, int start, int len)intStandardDecrypter. decryptData(byte[] buff)intStandardDecrypter. decryptData(byte[] buff, int start, int len)intAESEncrpyter. encryptData(byte[] buff)intAESEncrpyter. encryptData(byte[] buff, int start, int len)intIEncrypter. encryptData(byte[] buff)intIEncrypter. encryptData(byte[] buff, int start, int len)intStandardEncrypter. encryptData(byte[] buff)intStandardEncrypter. encryptData(byte[] buff, int start, int len)protected byte[]StandardEncrypter. generateRandomBytes(int size)voidStandardDecrypter. init(byte[] headerBytes)Constructors in net.lingala.zip4j.crypto that throw ZipException Constructor Description AESDecrypter(LocalFileHeader localFileHeader, byte[] salt, byte[] passwordVerifier)AESEncrpyter(char[] password, int keyStrength)StandardDecrypter(FileHeader fileHeader, byte[] headerBytes)StandardEncrypter(char[] password, int crc) -
Uses of ZipException in net.lingala.zip4j.crypto.engine
Methods in net.lingala.zip4j.crypto.engine that throw ZipException Modifier and Type Method Description 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.io
Methods in net.lingala.zip4j.io that throw ZipException Modifier and Type Method Description booleanSplitOutputStream. checkBuffSizeAndStartNextSplitFile(int bufferSize)Checks if the buffer size is sufficient for the current split file.voidCipherOutputStream. closeEntry()voidDeflaterOutputStream. closeEntry()voidCipherOutputStream. finish()voidDeflaterOutputStream. finish()booleanSplitOutputStream. isBuffSizeFitForCurrSplitFile(int bufferSize)Checks if the given buffer size will be fit in the current split file.voidCipherOutputStream. putNextEntry(File file, ZipParameters zipParameters)voidDeflaterOutputStream. putNextEntry(File file, ZipParameters zipParameters)Constructors in net.lingala.zip4j.io that throw ZipException Constructor Description SplitOutputStream(File file)SplitOutputStream(File file, long splitLength)SplitOutputStream(String name)SplitOutputStream(String name, long splitLength) -
Uses of ZipException in net.lingala.zip4j.model
Methods in net.lingala.zip4j.model that throw ZipException Modifier and Type Method Description voidFileHeader. extractFile(ZipModel zipModel, String outPath, UnzipParameters unzipParameters, String newFileName, ProgressMonitor progressMonitor, boolean runInThread)Extracts file to the specified directory using any user defined parameters in UnzipParameters.voidFileHeader. extractFile(ZipModel zipModel, String outPath, UnzipParameters unzipParameters, ProgressMonitor progressMonitor, boolean runInThread)Extracts file to the specified directory using any user defined parameters in UnzipParametersvoidFileHeader. extractFile(ZipModel zipModel, String outPath, ProgressMonitor progressMonitor, boolean runInThread)Extracts file to the specified directory -
Uses of ZipException in net.lingala.zip4j.progress
Methods in net.lingala.zip4j.progress that throw ZipException Modifier and Type Method Description voidProgressMonitor. endProgressMonitorError(Throwable e)voidProgressMonitor. endProgressMonitorSuccess() -
Uses of ZipException in net.lingala.zip4j.unzip
Methods in net.lingala.zip4j.unzip that throw ZipException Modifier and Type Method Description static voidUnzipUtil. applyFileAttributes(FileHeader fileHeader, File file)static voidUnzipUtil. applyFileAttributes(FileHeader fileHeader, File file, UnzipParameters unzipParameters)voidUnzipEngine. checkCRC()voidUnzip. extractAll(UnzipParameters unzipParameters, String outPath, ProgressMonitor progressMonitor, boolean runInThread)voidUnzip. extractFile(FileHeader fileHeader, String outPath, UnzipParameters unzipParameters, String newFileName, ProgressMonitor progressMonitor, boolean runInThread)ZipInputStreamUnzip. getInputStream(FileHeader fileHeader)ZipInputStreamUnzipEngine. getInputStream()voidUnzipEngine. unzipFile(ProgressMonitor progressMonitor, String outPath, String newFileName, UnzipParameters unzipParameters)Constructors in net.lingala.zip4j.unzip that throw ZipException Constructor Description Unzip(ZipModel zipModel)UnzipEngine(ZipModel zipModel, FileHeader fileHeader) -
Uses of ZipException in net.lingala.zip4j.util
Methods in net.lingala.zip4j.util that throw ZipException Modifier and Type Method Description static byteRaw. bitArrayToByte(int[] bitArray)static booleanZip4jUtil. checkArrayListTypes(ArrayList sourceList, int type)Checks to see if all the elements in the arraylist match the given typestatic booleanZip4jUtil. checkFileExists(File file)static booleanZip4jUtil. checkFileExists(String path)static booleanZip4jUtil. checkFileReadAccess(String path)static booleanZip4jUtil. checkFileWriteAccess(String path)static booleanZip4jUtil. checkOutputFolder(String path)static longCRCUtil. computeFileCRC(String inputFile)static longCRCUtil. computeFileCRC(String inputFile, ProgressMonitor progressMonitor)Calculates CRC of a filestatic byte[]Zip4jUtil. convertCharset(String str)static StringZip4jUtil. detectCharSet(String str)Detects the encoding charset for the input stringstatic StringZip4jUtil. getAbsoluteFilePath(String filePath)Returns an absoulte path for the given file pathstatic intZip4jUtil. getEncodedStringLength(String str)returns the length of the string by wrapping it in a byte buffer with the appropriate charset of the input string and returns the limit of the byte bufferstatic intZip4jUtil. getEncodedStringLength(String str, String charset)returns the length of the string in the input encodingstatic FileHeaderZip4jUtil. getFileHeader(ZipModel zipModel, String fileName)static FileHeaderZip4jUtil. getFileHeaderWithExactMatch(ZipModel zipModel, String fileName)static longZip4jUtil. getFileLengh(File file)static longZip4jUtil. getFileLengh(String file)static StringZip4jUtil. getFileNameFromFilePath(File file)static ArrayListZip4jUtil. getFilesInDirectoryRec(File path, boolean readHiddenFiles)static intZip4jUtil. getIndexOfFileHeader(ZipModel zipModel, FileHeader fileHeader)static longZip4jUtil. getLastModifiedFileTime(File file, TimeZone timeZone)static StringZip4jUtil. getRelativeFileName(String file, String rootFolderInZip, String rootFolderPath)static ArrayListZip4jUtil. getSplitZipFiles(ZipModel zipModel)static StringZip4jUtil. getZipFileNameWithoutExt(String zipFile)voidArchiveMaintainer. initProgressMonitorForMergeOp(ZipModel zipModel, ProgressMonitor progressMonitor)voidArchiveMaintainer. initProgressMonitorForRemoveOp(ZipModel zipModel, FileHeader fileHeader, ProgressMonitor progressMonitor)HashMapArchiveMaintainer. initRemoveZipFile(ZipModel zipModel, FileHeader fileHeader, ProgressMonitor progressMonitor)static booleanZip4jUtil. isSupportedCharset(String charset)Checks if the input charset is supportedvoidArchiveMaintainer. mergeSplitZipFiles(ZipModel zipModel, File outputZipFile, ProgressMonitor progressMonitor, boolean runInThread)Merges split Zip files into a single Zip filestatic intRaw. readLeInt(DataInput di, byte[] b)HashMapArchiveMaintainer. removeZipFile(ZipModel zipModel, FileHeader fileHeader, ProgressMonitor progressMonitor, boolean runInThread)voidArchiveMaintainer. setComment(ZipModel zipModel, String comment)static voidZip4jUtil. setFileArchive(File file)static voidZip4jUtil. setFileHidden(File file)static voidZip4jUtil. setFileReadOnly(File file)static voidZip4jUtil. setFileSystemMode(File file) -
Uses of ZipException in net.lingala.zip4j.zip
Methods in net.lingala.zip4j.zip that throw ZipException Modifier and Type Method Description voidZipEngine. addFiles(ArrayList fileList, ZipParameters parameters, ProgressMonitor progressMonitor, boolean runInThread)voidZipEngine. addFolderToZip(File file, ZipParameters parameters, ProgressMonitor progressMonitor, boolean runInThread)voidZipEngine. addStreamToZip(InputStream inputStream, ZipParameters parameters)Constructors in net.lingala.zip4j.zip that throw ZipException Constructor Description ZipEngine(ZipModel zipModel)
-