| Modifier and Type | Method and Description |
|---|---|
void |
ZipFile.addFile(File fileToAdd)
Adds input source file to the zip file with default zip parameters.
|
void |
ZipFile.addFile(File fileToAdd,
ZipParameters parameters)
Adds input source file to the zip file.
|
void |
ZipFile.addFile(String fileToAdd)
Adds input source file to the zip file with default zip parameters.
|
void |
ZipFile.addFile(String fileToAdd,
ZipParameters zipParameters)
Adds input source file to the zip file with provided zip parameters.
|
void |
ZipFile.addFiles(List<File> filesToAdd)
Adds the list of input files to the zip file with default zip parameters.
|
void |
ZipFile.addFiles(List<File> filesToAdd,
ZipParameters parameters)
Adds the list of input files to the zip file.
|
void |
ZipFile.addFolder(File folderToAdd)
Adds the folder in the given file object to the zip file with default zip parameters.
|
void |
ZipFile.addFolder(File folderToAdd,
ZipParameters zipParameters)
Adds the folder in the given file object to the zip file.
|
void |
ZipFile.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.
|
void |
ZipFile.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.
|
void |
ZipFile.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.
|
void |
ZipFile.extractAll(String destinationPath)
Extracts all the files in the given zip file to the input destination path.
|
void |
ZipFile.extractAll(String destinationPath,
UnzipParameters unzipParameters)
Extracts all entries in the zip file to the destination path considering the options defined in
UnzipParameters
|
void |
ZipFile.extractFile(FileHeader fileHeader,
String destinationPath)
Extracts a specific file from the zip file to the destination path.
|
void |
ZipFile.extractFile(FileHeader fileHeader,
String destinationPath,
String newFileName)
Extracts a specific file from the zip file to the destination path.
|
void |
ZipFile.extractFile(FileHeader fileHeader,
String destinationPath,
String newFileName,
UnzipParameters unzipParameters)
Extracts a specific file from the zip file to the destination path.
|
void |
ZipFile.extractFile(FileHeader fileHeader,
String destinationPath,
UnzipParameters unzipParameters)
Extracts a specific file from the zip file to the destination path.
|
void |
ZipFile.extractFile(String fileName,
String destinationPath)
Extracts a specific file from the zip file to the destination path.
|
void |
ZipFile.extractFile(String fileName,
String destinationPath,
String newFileName)
Extracts a specific file from the zip file to the destination path.
|
void |
ZipFile.extractFile(String fileName,
String destinationPath,
String newFileName,
UnzipParameters unzipParameters)
Extracts a specific file from the zip file to the destination path.
|
void |
ZipFile.extractFile(String fileName,
String destinationPath,
UnzipParameters unzipParameters)
Extracts a specific file from the zip file to the destination path.
|
String |
ZipFile.getComment()
Returns the comment set for the Zip file
|
FileHeader |
ZipFile.getFileHeader(String fileName)
Returns FileHeader if a file header with the given fileHeader
string exists in the zip model: If not returns null
|
List<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.
|
boolean |
ZipFile.isEncrypted()
Checks to see if the zip file is encrypted
|
boolean |
ZipFile.isSplitArchive()
Checks if the zip file is a split archive
|
void |
ZipFile.mergeSplitFiles(File outputZipFile)
Merges split zip files into a single zip file without the need to extract the
files in the archive
|
void |
ZipFile.removeFile(FileHeader fileHeader)
Removes the file provided in the input file header from the zip file.
|
void |
ZipFile.removeFile(String fileName)
Removes the file provided in the input parameters from the zip file.
|
void |
ZipFile.removeFiles(List<String> fileNames)
Removes all files from the zip file that match the names in the input list.
|
void |
ZipFile.renameFile(FileHeader fileHeader,
String newFileName)
Renames file name of the entry represented by file header.
|
void |
ZipFile.renameFile(String fileNameToRename,
String newFileName)
Renames file name of the entry represented by input fileNameToRename.
|
void |
ZipFile.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.
|
void |
ZipFile.setComment(String comment)
Sets comment for the Zip file
|
| Modifier and Type | Method and Description |
|---|---|
int |
StandardDecrypter.decryptData(byte[] buff,
int start,
int len) |
int |
Decrypter.decryptData(byte[] buff,
int start,
int len) |
int |
AESDecrypter.decryptData(byte[] buff,
int start,
int len) |
static byte[] |
AesCipherUtil.derivePasswordBasedKey(byte[] salt,
char[] password,
AesKeyStrength aesKeyStrength)
Derive Password-Based Key for AES according to AE-1 and AE-2 Specifications
|
int |
AESEncrypter.encryptData(byte[] buff) |
int |
StandardEncrypter.encryptData(byte[] buff) |
int |
Encrypter.encryptData(byte[] buff) |
int |
AESEncrypter.encryptData(byte[] buff,
int start,
int len) |
int |
StandardEncrypter.encryptData(byte[] buff,
int start,
int len) |
int |
Encrypter.encryptData(byte[] buff,
int start,
int len) |
static AESEngine |
AesCipherUtil.getAESEngine(byte[] derivedKey,
AesKeyStrength aesKeyStrength)
Get AES Engine using derived key and requested AES Key Strength
|
| Constructor and Description |
|---|
AESDecrypter(AESExtraDataRecord aesExtraDataRecord,
char[] password,
byte[] salt,
byte[] passwordVerifier) |
AESEncrypter(char[] password,
AesKeyStrength aesKeyStrength) |
StandardDecrypter(char[] password,
long crc,
long lastModifiedFileTime,
byte[] headerBytes) |
StandardEncrypter(char[] password,
long key) |
| Modifier and Type | Method and Description |
|---|---|
int |
AESEngine.processBlock(byte[] in,
byte[] out) |
int |
AESEngine.processBlock(byte[] in,
int inOff,
byte[] out,
int outOff) |
| Constructor and Description |
|---|
AESEngine(byte[] key) |
| Modifier and Type | Method and Description |
|---|---|
FileHeader |
FileHeaderFactory.generateFileHeader(ZipParameters zipParameters,
boolean isSplitZip,
int currentDiskNumberStart,
Charset charset,
RawIO rawIO) |
static FileHeader |
HeaderUtil.getFileHeader(ZipModel zipModel,
String fileName) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
SplitOutputStream.checkBufferSizeAndStartNextSplitFile(int bufferSize)
Checks if the buffer size is sufficient for the current split file.
|
boolean |
CountingOutputStream.checkBuffSizeAndStartNextSplitFile(int bufferSize) |
| Constructor and Description |
|---|
SplitOutputStream(File file) |
SplitOutputStream(File file,
long splitLength) |
| Modifier and Type | Method and Description |
|---|---|
static CompressionMethod |
CompressionMethod.getCompressionMethodFromCode(int code)
Get the CompressionMethod for a given ZIP file code
|
| Modifier and Type | Method and Description |
|---|---|
protected long |
AddFilesToZipTask.calculateTotalWork(AddFilesToZipTask.AddFilesToZipTaskParameters taskParameters) |
protected long |
AddFolderToZipTask.calculateTotalWork(AddFolderToZipTask.AddFolderToZipTaskParameters taskParameters) |
protected long |
ExtractFileTask.calculateTotalWork(ExtractFileTask.ExtractFileTaskParameters taskParameters) |
protected abstract long |
AsyncZipTask.calculateTotalWork(T taskParameters) |
void |
AsyncZipTask.execute(T taskParameters) |
protected void |
AsyncZipTask.verifyIfTaskIsCancelled() |
| Modifier and Type | Method and Description |
|---|---|
static void |
FileUtils.assertFilesExist(List<File> files,
ZipParameters.SymbolicLinkAction symLinkAction) |
static void |
FileUtils.copyFile(RandomAccessFile randomAccessFile,
OutputStream outputStream,
long start,
long end,
ProgressMonitor progressMonitor,
int bufferSize) |
static boolean |
Zip4jUtil.createDirectoryIfNotExists(File file) |
static List<File> |
FileUtils.getFilesInDirectoryRecursive(File path,
boolean readHiddenFiles,
boolean readHiddenFolders) |
static List<File> |
FileUtils.getFilesInDirectoryRecursive(File path,
boolean readHiddenFiles,
boolean readHiddenFolders,
ExcludeFileFilter excludedFiles) |
static String |
FileUtils.getRelativeFileName(File fileToAdd,
ZipParameters zipParameters) |
static List<File> |
FileUtils.getSplitZipFiles(ZipModel zipModel) |
static String |
FileUtils.getZipFileNameWithoutExtension(String zipFile) |
Copyright © 2021. All rights reserved.