Chilkat • HOME • Android™ • Classic ASP • C • C++ • C# • Mono C# • .NET Core C# • C# UWP/WinRT • DataFlex • Delphi ActiveX • Delphi DLL • Visual FoxPro • Java • Lianja • MFC • Objective-C • Perl • PHP ActiveX • PHP Extension • PowerBuilder • PowerShell • PureBasic • CkPython • Chilkat2-Python • Ruby • SQL Server • Swift 2 • Swift 3/4 • Tcl • Unicode C • Unicode C++ • Visual Basic 6.0 • VB.NET • VB.NET UWP/WinRT • VBScript • Xojo Plugin • Node.js • Excel • Go
| Creates a WinZip compatible AES-encrypted .zip archive
|
7-Zip is a free and open-source file archiver, a utility used to place groups of files within. For example, the EPUB format, which is based on Zip and HTML formats, requires a certain order.
© 2000-2019 Chilkat Software, Inc. All Rights Reserved.
j7zip-extractor is a fork of the J7Zip project intended to be used only forextracting the contents of a 7zip archive into a specified directory. Consequently, it doesn't support creating 7zarchives or listing their contents.
This version supports only
- non-encrypted archives
- archives with Copy or LZMA codec.
j7zip-extractor also includes a version of the JAVA LZMA SDK.
LZMA is default and general compression method of 7z format in 7-Zip compression program (www.7-zip.org). LZMAprovides high compression ratio and very fast decompression.
LZMA is an improved version of famous LZ77 compression algorithm. It was improved in way of maximum increasing ofcompression ratio, keeping high decompression speed and low memory requirements for decompressing.
LGPL (see LGPL.txt)read also: http://www.gnu.org/licenses/lgpl-java.html
With ant (any system with http://ant.apache.org/)
- remove all build artifacts
ant clean
- build dist/j7zip-extractor.jar
ant
Note: this code compiles with JAVA 5 or later
The executable j7zip-extractor
- Tests archive files
java -jar dist/j7zip-extractor.jar t archive.7z
- Extracts files from archive to their full paths in the current directory
java -jar dist/j7zip-extractor.jar x archive.7z
- Extracts files from archive to their full paths under a given directory
java -jar dist/j7zip-extractor.jar x archive.7z target_dir
The jar j7zip-extractor.jar
Please read SevenZipJ7zip.java and SevenZipArchiveExtractCallback.java as samples. Look at
SevenZip.Archive.SevenZip.Handler
SevenZip.Archive.SevenZipEntry
SevenZip.Archive.IArchiveExtractCallback
SevenZip.Archive.IInArchive
The executable LZMA (this hasn't been tested under the new code)
to decompress:
java -cp dist/j7zip-extractor.jar SevenZip.LzmaAlone d file.lzma file
- Add tests
- Support creation of 7-zip archives
- Improve speed
- Support compression methods: PPMd, BZip2
- Support encrypted archives
Marked portions of the code are Copyright (c) by OpenLogic, Inc.
The remaining code is provided by the p7zip project at http://p7zip.sourceforge.net.
All code licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See LGPL.txt for full details.