Browse our Products
<dependency>
<groupId>com.aspose</groupId>
<artifactId>aspose-zip</artifactId>
<version>24.9</version>
</dependency>
compile(group: 'com.aspose', name: 'aspose-zip', version: '24.9')
<dependency org="com.aspose" name="aspose-zip" rev="24.9">
<artifact name="aspose-zip" ext="jar"/>
</dependency>
libraryDependencies += "com.aspose" % "aspose-zip" % "24.9"
Process ZIP files via Java API
Product Page | Docs | Demos | API Reference | Examples | Blog | Search | Free Support | Temporary License
Aspose.ZIP for Java is a standalone Java API to create, manipulate, extract & protect archives.
Aspose.ZIP for Java class library allows your Java applications to compress/decompress files and folders without getting into the complexity of coding new compression algorithms or understanding the existing ones. Enable your programs to work with a vast range of features, such as creating archives, saving archives, archive extraction, encrypting/decrypting archives, compressing single or multiple files as well as directory contents. It also allows you to apply security to your archived and compressed files and folders via password, AES (128, 192, 256) encryption, or mixed encryption.
Archive Processing Features
- Compress files and folders into standard ZIP formats.
- Supports
Deflate
,Bzip2
&LZMA
compression algorithm. - Apply simple password or
AES128
,AES192
,AES256
encryption to archives. - Employ different protection schemes for each file within an archive.
- Append more files to an existing zipped archive.
- Use
Gzip
orBzip2
to pack files & folders into aTAR
archive. - Supports
LZMA
orLZMA2
compression & optional encryption to create7z
archives.
Read & Write ZIP Formats
ZIP, 7z, TAR, GZIP, BZ2
Supported Environments
- Microsoft Windows: Windows Desktop & Server (x86, x64)
- macOS: Mac OS X
- Linux: Ubuntu, OpenSUSE, CentOS, and others
- Java Versions:
J2SE 8.0 (1.8)
or above
Get Started
Aspose.ZIP Java APIs are hosted at the Aspose Repository. You can easily use Aspose.ZIP for Java API directly in your Maven projects with simple configurations. For the detailed instructions please visit Installing Aspose.ZIP for Java from Maven Repository documentation page.
Read Project Data from Microsoft Project Database
String dir = "full directory path";
try(Archive arch = new Archive()) {
arch.createEntry("filename.dat", dir+"file.dat");
arch.save(dir+"result.zip");
}
Product Page | Docs | Demos | API Reference | Examples | Blog | Search | Free Support | Temporary License