限定符和类型 | 方法和说明 |
---|---|
static void |
PluginBaseUtils.addToJar(ZipFile zipFile,
java.lang.String path,
java.io.File file)
将文件file放到jarFile的path下,path中不包含文件名
|
static void |
PluginBaseUtils.removeFromJar(ZipFile zipFile,
FileHeader fileHeader)
将jarFile的path删除
|
static void |
PluginBaseUtils.unzip(java.io.File file,
java.lang.String destination)
解压文件
|
限定符和类型 | 方法和说明 |
---|---|
void |
ZipFileForPlugin.addFile(java.io.File sourceFile,
ZipParameters parameters)
Adds input source file to the zip file.
|
void |
ZipFile.addFile(java.io.File sourceFile,
ZipParameters parameters)
Adds input source file to the zip file.
|
void |
ZipFileForPlugin.addFiles(java.util.ArrayList sourceFileList,
ZipParameters parameters)
Adds the list of input files to the zip file.
|
void |
ZipFile.addFiles(java.util.ArrayList sourceFileList,
ZipParameters parameters)
Adds the list of input files to the zip file.
|
void |
ZipFileForPlugin.addFolder(java.io.File path,
ZipParameters parameters)
Adds the folder in the given file object to the zip file.
|
void |
ZipFile.addFolder(java.io.File path,
ZipParameters parameters)
Adds the folder in the given file object to the zip file.
|
void |
ZipFileForPlugin.addFolder(java.lang.String path,
ZipParameters parameters)
Adds the folder in the given path to the zip file.
|
void |
ZipFile.addFolder(java.lang.String path,
ZipParameters parameters)
Adds the folder in the given path to the zip file.
|
void |
ZipFileForPlugin.addStream(java.io.InputStream inputStream,
ZipParameters parameters)
Creates a new entry in the zip file and adds the content of the inputstream to the
zip file.
|
void |
ZipFile.addStream(java.io.InputStream inputStream,
ZipParameters parameters)
Creates a new entry in the zip file and adds the content of the inputstream to the
zip file.
|
void |
ZipFileForPlugin.createZipFile(java.util.ArrayList sourceFileList,
ZipParameters parameters)
Creates a zip file and adds the list of source file(s) to the zip file.
|
void |
ZipFile.createZipFile(java.util.ArrayList sourceFileList,
ZipParameters parameters)
Creates a zip file and adds the list of source file(s) to the zip file.
|
void |
ZipFileForPlugin.createZipFile(java.util.ArrayList sourceFileList,
ZipParameters parameters,
boolean splitArchive,
long splitLength)
Creates a zip file and adds the list of source file(s) to the zip file.
|
void |
ZipFile.createZipFile(java.util.ArrayList sourceFileList,
ZipParameters parameters,
boolean splitArchive,
long splitLength)
Creates a zip file and adds the list of source file(s) to the zip file.
|
void |
ZipFileForPlugin.createZipFile(java.io.File sourceFile,
ZipParameters parameters)
Creates a zip file and adds the source file to the zip file.
|
void |
ZipFile.createZipFile(java.io.File sourceFile,
ZipParameters parameters)
Creates a zip file and adds the source file to the zip file.
|
void |
ZipFileForPlugin.createZipFile(java.io.File sourceFile,
ZipParameters parameters,
boolean splitArchive,
long splitLength)
Creates a zip file and adds the source file to the zip file.
|
void |
ZipFile.createZipFile(java.io.File sourceFile,
ZipParameters parameters,
boolean splitArchive,
long splitLength)
Creates a zip file and adds the source file to the zip file.
|
void |
ZipFileForPlugin.createZipFileFromFolder(java.io.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.createZipFileFromFolder(java.io.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 |
ZipFileForPlugin.createZipFileFromFolder(java.lang.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.
|
void |
ZipFile.createZipFileFromFolder(java.lang.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.
|
void |
ZipFileForPlugin.extractAll(java.lang.String destPath)
Extracts all the files in the given zip file to the input destination path.
|
void |
ZipFile.extractAll(java.lang.String destPath)
Extracts all the files in the given zip file to the input destination path.
|
void |
ZipFileForPlugin.extractAll(java.lang.String destPath,
UnzipParameters unzipParameters)
Extracts all the files in the given zip file to the input destination path.
|
void |
ZipFile.extractAll(java.lang.String destPath,
UnzipParameters unzipParameters)
Extracts all the files in the given zip file to the input destination path.
|
void |
ZipFileForPlugin.extractFile(FileHeader fileHeader,
java.lang.String destPath)
Extracts a specific file from the zip file to the destination path.
|
void |
ZipFile.extractFile(FileHeader fileHeader,
java.lang.String destPath)
Extracts a specific file from the zip file to the destination path.
|
void |
ZipFileForPlugin.extractFile(FileHeader fileHeader,
java.lang.String destPath,
UnzipParameters unzipParameters)
Extracts a specific file from the zip file to the destination path.
|
void |
ZipFile.extractFile(FileHeader fileHeader,
java.lang.String destPath,
UnzipParameters unzipParameters)
Extracts a specific file from the zip file to the destination path.
|
void |
ZipFileForPlugin.extractFile(FileHeader fileHeader,
java.lang.String destPath,
UnzipParameters unzipParameters,
java.lang.String newFileName)
Extracts a specific file from the zip file to the destination path.
|
void |
ZipFile.extractFile(FileHeader fileHeader,
java.lang.String destPath,
UnzipParameters unzipParameters,
java.lang.String newFileName)
Extracts a specific file from the zip file to the destination path.
|
void |
ZipFileForPlugin.extractFile(java.lang.String fileName,
java.lang.String destPath)
Extracts a specific file from the zip file to the destination path.
|
void |
ZipFile.extractFile(java.lang.String fileName,
java.lang.String destPath)
Extracts a specific file from the zip file to the destination path.
|
void |
ZipFileForPlugin.extractFile(java.lang.String fileName,
java.lang.String destPath,
UnzipParameters unzipParameters)
Extracts a specific file from the zip file to the destination path.
|
void |
ZipFile.extractFile(java.lang.String fileName,
java.lang.String destPath,
UnzipParameters unzipParameters)
Extracts a specific file from the zip file to the destination path.
|
void |
ZipFileForPlugin.extractFile(java.lang.String fileName,
java.lang.String destPath,
UnzipParameters unzipParameters,
java.lang.String newFileName)
Extracts a specific file from the zip file to the destination path.
|
void |
ZipFile.extractFile(java.lang.String fileName,
java.lang.String destPath,
UnzipParameters unzipParameters,
java.lang.String newFileName)
Extracts a specific file from the zip file to the destination path.
|
void |
HeaderWriter.finalizeZipFile(ZipModel zipModel,
java.io.OutputStream outputStream)
Processes zip header data and writes this data to the zip file
|
void |
HeaderWriter.finalizeZipFileWithoutValidations(ZipModel zipModel,
java.io.OutputStream outputStream)
Processes zip header data and writes this data to the zip file without any validations.
|
java.lang.String |
ZipFileForPlugin.getComment()
Returns the comment set for the Zip file
|
java.lang.String |
ZipFile.getComment()
Returns the comment set for the Zip file
|
java.lang.String |
ZipFileForPlugin.getComment(java.lang.String encoding)
Returns the comment set for the Zip file in the input encoding
|
java.lang.String |
ZipFile.getComment(java.lang.String encoding)
Returns the comment set for the Zip file in the input encoding
|
FileHeader |
ZipFileForPlugin.getFileHeader(java.lang.String fileName)
Returns FileHeader if a file header with the given fileHeader
string exists in the zip model: If not returns null
|
FileHeader |
ZipFile.getFileHeader(java.lang.String fileName)
Returns FileHeader if a file header with the given fileHeader
string exists in the zip model: If not returns null
|
java.util.List |
ZipFileForPlugin.getFileHeaders()
Returns the list of file headers in the zip file.
|
java.util.List |
ZipFile.getFileHeaders()
Returns the list of file headers in the zip file.
|
ZipInputStream |
ZipFileForPlugin.getInputStream(FileHeader fileHeader)
Returns an input stream for reading the contents of the Zip file corresponding
to the input FileHeader.
|
ZipInputStream |
ZipFile.getInputStream(FileHeader fileHeader)
Returns an input stream for reading the contents of the Zip file corresponding
to the input FileHeader.
|
java.util.ArrayList |
ZipFileForPlugin.getSplitZipFiles()
Returns the full file path+names of all split zip files
in an ArrayList.
|
java.util.ArrayList |
ZipFile.getSplitZipFiles()
Returns the full file path+names of all split zip files
in an ArrayList.
|
boolean |
ZipFileForPlugin.isEncrypted()
Checks to see if the zip file is encrypted
|
boolean |
ZipFile.isEncrypted()
Checks to see if the zip file is encrypted
|
boolean |
ZipFileForPlugin.isSplitArchive()
Checks if the zip file is a split archive
|
boolean |
ZipFile.isSplitArchive()
Checks if the zip file is a split archive
|
void |
ZipFileForPlugin.mergeSplitFiles(java.io.File outputZipFile)
Merges split zip files into a single zip file without the need to extract the
files in the archive
|
void |
ZipFile.mergeSplitFiles(java.io.File outputZipFile)
Merges split zip files into a single zip file without the need to extract the
files in the archive
|
ZipModel |
HeaderReader.readAllHeaders()
Reads all the header information for the zip file.
|
ZipModel |
HeaderReader.readAllHeaders(java.lang.String fileNameCharset)
Reads all the header information for the zip file.
|
LocalFileHeader |
HeaderReader.readLocalFileHeader(FileHeader fileHeader)
Reads local file header for the given file header
|
void |
ZipFileForPlugin.removeFile(FileHeader fileHeader)
Removes the file provided in the input file header from the zip file.
|
void |
ZipFile.removeFile(FileHeader fileHeader)
Removes the file provided in the input file header from the zip file.
|
void |
ZipFileForPlugin.removeFile(java.lang.String fileName)
Removes the file provided in the input paramters from the zip file.
|
void |
ZipFile.removeFile(java.lang.String fileName)
Removes the file provided in the input paramters from the zip file.
|
void |
ZipFileForPlugin.setComment(java.lang.String comment)
Sets comment for the Zip file
|
void |
ZipFile.setComment(java.lang.String comment)
Sets comment for the Zip file
|
void |
ZipFileForPlugin.setFileNameCharset(java.lang.String charsetName)
Zip4j will encode all the file names with the input charset.
|
void |
ZipFile.setFileNameCharset(java.lang.String charsetName)
Zip4j will encode all the file names with the input charset.
|
void |
ZipFileForPlugin.setPassword(char[] password)
Sets the password for the zip file
|
void |
ZipFile.setPassword(char[] password)
Sets the password for the zip file
|
void |
ZipFileForPlugin.setPassword(java.lang.String password)
Sets the password for the zip file.
|
void |
ZipFile.setPassword(java.lang.String password)
Sets the password for the zip file.
|
void |
HeaderWriter.updateLocalFileHeader(LocalFileHeader localFileHeader,
long offset,
int toUpdate,
ZipModel zipModel,
byte[] bytesToWrite,
int noOfDisk,
SplitOutputStream outputStream) |
int |
HeaderWriter.writeExtendedLocalHeader(LocalFileHeader localFileHeader,
java.io.OutputStream outputStream) |
int |
HeaderWriter.writeLocalFileHeader(ZipModel zipModel,
LocalFileHeader localFileHeader,
java.io.OutputStream outputStream) |
构造器和说明 |
---|
ZipFile(java.io.File zipFile)
Creates a new Zip File Object with the input file.
|
ZipFile(java.lang.String zipFile)
Creates a new Zip File Object with the given zip file path.
|
ZipFileForPlugin(java.io.File zipFile)
Creates a new Zip File Object with the input file.
|
ZipFileForPlugin(java.lang.String zipFile)
Creates a new Zip File Object with the given zip file path.
|
限定符和类型 | 方法和说明 |
---|---|
int |
StandardDecrypter.decryptData(byte[] buff) |
int |
IDecrypter.decryptData(byte[] buff) |
int |
AESDecrypter.decryptData(byte[] buff) |
int |
StandardDecrypter.decryptData(byte[] buff,
int start,
int len) |
int |
IDecrypter.decryptData(byte[] buff,
int start,
int len) |
int |
AESDecrypter.decryptData(byte[] buff,
int start,
int len) |
int |
StandardEncrypter.encryptData(byte[] buff) |
int |
IEncrypter.encryptData(byte[] buff) |
int |
AESEncrpyter.encryptData(byte[] buff) |
int |
StandardEncrypter.encryptData(byte[] buff,
int start,
int len) |
int |
IEncrypter.encryptData(byte[] buff,
int start,
int len) |
int |
AESEncrpyter.encryptData(byte[] buff,
int start,
int len) |
protected byte[] |
StandardEncrypter.generateRandomBytes(int size) |
void |
StandardDecrypter.init(byte[] headerBytes) |
构造器和说明 |
---|
AESDecrypter(LocalFileHeader localFileHeader,
byte[] salt,
byte[] passwordVerifier) |
AESEncrpyter(char[] password,
int keyStrength) |
StandardDecrypter(FileHeader fileHeader,
byte[] headerBytes) |
StandardEncrypter(char[] password,
int crc) |
限定符和类型 | 方法和说明 |
---|---|
void |
AESEngine.init(byte[] key) |
int |
AESEngine.processBlock(byte[] in,
byte[] out) |
int |
AESEngine.processBlock(byte[] in,
int inOff,
byte[] out,
int outOff) |
构造器和说明 |
---|
AESEngine(byte[] key) |
限定符和类型 | 方法和说明 |
---|---|
boolean |
SplitOutputStream.checkBuffSizeAndStartNextSplitFile(int bufferSize)
Checks if the buffer size is sufficient for the current split file.
|
void |
DeflaterOutputStream.closeEntry() |
void |
CipherOutputStream.closeEntry() |
void |
DeflaterOutputStream.finish() |
void |
CipherOutputStream.finish() |
boolean |
SplitOutputStream.isBuffSizeFitForCurrSplitFile(int bufferSize)
Checks if the given buffer size will be fit in the current split file.
|
void |
DeflaterOutputStream.putNextEntry(java.io.File file,
ZipParameters zipParameters) |
void |
CipherOutputStream.putNextEntry(java.io.File file,
ZipParameters zipParameters) |
构造器和说明 |
---|
SplitOutputStream(java.io.File file) |
SplitOutputStream(java.io.File file,
long splitLength) |
SplitOutputStream(java.lang.String name) |
SplitOutputStream(java.lang.String name,
long splitLength) |
限定符和类型 | 方法和说明 |
---|---|
void |
FileHeader.extractFile(ZipModel zipModel,
java.lang.String outPath,
ProgressMonitor progressMonitor,
boolean runInThread)
Extracts file to the specified directory
|
void |
FileHeader.extractFile(ZipModel zipModel,
java.lang.String outPath,
UnzipParameters unzipParameters,
ProgressMonitor progressMonitor,
boolean runInThread)
Extracts file to the specified directory using any
user defined parameters in UnzipParameters
|
void |
FileHeader.extractFile(ZipModel zipModel,
java.lang.String outPath,
UnzipParameters unzipParameters,
java.lang.String newFileName,
ProgressMonitor progressMonitor,
boolean runInThread)
Extracts file to the specified directory using any
user defined parameters in UnzipParameters.
|
限定符和类型 | 方法和说明 |
---|---|
void |
ProgressMonitor.endProgressMonitorError(java.lang.Throwable e) |
void |
ProgressMonitor.endProgressMonitorSuccess() |
限定符和类型 | 方法和说明 |
---|---|
static void |
UnzipUtil.applyFileAttributes(FileHeader fileHeader,
java.io.File file) |
static void |
UnzipUtil.applyFileAttributes(FileHeader fileHeader,
java.io.File file,
UnzipParameters unzipParameters) |
void |
UnzipEngine.checkCRC() |
void |
Unzip.extractAll(UnzipParameters unzipParameters,
java.lang.String outPath,
ProgressMonitor progressMonitor,
boolean runInThread) |
void |
Unzip.extractFile(FileHeader fileHeader,
java.lang.String outPath,
UnzipParameters unzipParameters,
java.lang.String newFileName,
ProgressMonitor progressMonitor,
boolean runInThread) |
ZipInputStream |
UnzipEngine.getInputStream() |
ZipInputStream |
Unzip.getInputStream(FileHeader fileHeader) |
void |
UnzipEngine.unzipFile(ProgressMonitor progressMonitor,
java.lang.String outPath,
java.lang.String newFileName,
UnzipParameters unzipParameters) |
构造器和说明 |
---|
Unzip(ZipModel zipModel) |
UnzipEngine(ZipModel zipModel,
FileHeader fileHeader) |
限定符和类型 | 方法和说明 |
---|---|
static byte |
Raw.bitArrayToByte(int[] bitArray) |
static boolean |
Zip4jUtil.checkArrayListTypes(java.util.ArrayList sourceList,
int type)
Checks to see if all the elements in the arraylist match the given type
|
static boolean |
Zip4jUtil.checkFileExists(java.io.File file) |
static boolean |
Zip4jUtil.checkFileExists(java.lang.String path) |
static boolean |
Zip4jUtil.checkFileReadAccess(java.lang.String path) |
static boolean |
Zip4jUtil.checkFileWriteAccess(java.lang.String path) |
static boolean |
Zip4jUtil.checkOutputFolder(java.lang.String path) |
static long |
CRCUtil.computeFileCRC(java.lang.String inputFile) |
static long |
CRCUtil.computeFileCRC(java.lang.String inputFile,
ProgressMonitor progressMonitor)
Calculates CRC of a file
|
static byte[] |
Zip4jUtil.convertCharset(java.lang.String str) |
static java.lang.String |
Zip4jUtil.detectCharSet(java.lang.String str)
Detects the encoding charset for the input string
|
static java.lang.String |
Zip4jUtil.getAbsoluteFilePath(java.lang.String filePath)
Returns an absoulte path for the given file path
|
static int |
Zip4jUtil.getEncodedStringLength(java.lang.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 buffer
|
static int |
Zip4jUtil.getEncodedStringLength(java.lang.String str,
java.lang.String charset)
returns the length of the string in the input encoding
|
static FileHeader |
Zip4jUtil.getFileHeader(ZipModel zipModel,
java.lang.String fileName) |
static FileHeader |
Zip4jUtil.getFileHeaderWithExactMatch(ZipModel zipModel,
java.lang.String fileName) |
static long |
Zip4jUtil.getFileLengh(java.io.File file) |
static long |
Zip4jUtil.getFileLengh(java.lang.String file) |
static java.lang.String |
Zip4jUtil.getFileNameFromFilePath(java.io.File file) |
static java.util.ArrayList |
Zip4jUtil.getFilesInDirectoryRec(java.io.File path,
boolean readHiddenFiles) |
static int |
Zip4jUtil.getIndexOfFileHeader(ZipModel zipModel,
FileHeader fileHeader) |
static long |
Zip4jUtil.getLastModifiedFileTime(java.io.File file,
java.util.TimeZone timeZone) |
static java.lang.String |
Zip4jUtil.getRelativeFileName(java.lang.String file,
java.lang.String rootFolderInZip,
java.lang.String rootFolderPath) |
static java.util.ArrayList |
Zip4jUtil.getSplitZipFiles(ZipModel zipModel) |
static java.lang.String |
Zip4jUtil.getZipFileNameWithoutExt(java.lang.String zipFile) |
void |
ArchiveMaintainerForPlugin.initProgressMonitorForMergeOp(ZipModel zipModel,
ProgressMonitor progressMonitor) |
void |
ArchiveMaintainer.initProgressMonitorForMergeOp(ZipModel zipModel,
ProgressMonitor progressMonitor) |
void |
ArchiveMaintainerForPlugin.initProgressMonitorForRemoveOp(ZipModel zipModel,
FileHeader fileHeader,
ProgressMonitor progressMonitor) |
void |
ArchiveMaintainer.initProgressMonitorForRemoveOp(ZipModel zipModel,
FileHeader fileHeader,
ProgressMonitor progressMonitor) |
java.util.HashMap |
ArchiveMaintainerForPlugin.initRemoveZipFile(ZipModel zipModel,
FileHeader fileHeader,
ProgressMonitor progressMonitor) |
java.util.HashMap |
ArchiveMaintainer.initRemoveZipFile(ZipModel zipModel,
FileHeader fileHeader,
ProgressMonitor progressMonitor) |
static boolean |
Zip4jUtil.isSupportedCharset(java.lang.String charset)
Checks if the input charset is supported
|
void |
ArchiveMaintainerForPlugin.mergeSplitZipFiles(ZipModel zipModel,
java.io.File outputZipFile,
ProgressMonitor progressMonitor,
boolean runInThread)
Merges split Zip files into a single Zip file
|
void |
ArchiveMaintainer.mergeSplitZipFiles(ZipModel zipModel,
java.io.File outputZipFile,
ProgressMonitor progressMonitor,
boolean runInThread)
Merges split Zip files into a single Zip file
|
static int |
Raw.readLeInt(java.io.DataInput di,
byte[] b) |
java.util.HashMap |
ArchiveMaintainerForPlugin.removeZipFile(ZipModel zipModel,
FileHeader fileHeader,
ProgressMonitor progressMonitor,
boolean runInThread) |
java.util.HashMap |
ArchiveMaintainer.removeZipFile(ZipModel zipModel,
FileHeader fileHeader,
ProgressMonitor progressMonitor,
boolean runInThread) |
void |
ArchiveMaintainerForPlugin.setComment(ZipModel zipModel,
java.lang.String comment) |
void |
ArchiveMaintainer.setComment(ZipModel zipModel,
java.lang.String comment) |
static void |
Zip4jUtil.setFileArchive(java.io.File file) |
static void |
Zip4jUtil.setFileHidden(java.io.File file) |
static void |
Zip4jUtil.setFileReadOnly(java.io.File file) |
static void |
Zip4jUtil.setFileSystemMode(java.io.File file) |
限定符和类型 | 方法和说明 |
---|---|
void |
ZipEngineForPlugin.addFiles(java.util.ArrayList fileList,
ZipParameters parameters,
ProgressMonitor progressMonitor,
boolean runInThread) |
void |
ZipEngine.addFiles(java.util.ArrayList fileList,
ZipParameters parameters,
ProgressMonitor progressMonitor,
boolean runInThread) |
void |
ZipEngineForPlugin.addFolderToZip(java.io.File file,
ZipParameters parameters,
ProgressMonitor progressMonitor,
boolean runInThread) |
void |
ZipEngine.addFolderToZip(java.io.File file,
ZipParameters parameters,
ProgressMonitor progressMonitor,
boolean runInThread) |
void |
ZipEngineForPlugin.addStreamToZip(java.io.InputStream inputStream,
ZipParameters parameters) |
void |
ZipEngine.addStreamToZip(java.io.InputStream inputStream,
ZipParameters parameters) |
构造器和说明 |
---|
ZipEngine(ZipModel zipModel) |
ZipEngineForPlugin(ZipModel zipModel) |