In the previous example we have seen “How to compress files/folder in java“. Now we will focus on “Java Utility to Decompress a Zip File In Java” Java provides “java.util.zip” library to compress files/folder in zip format. Steps to follow – 1. Take folder/files path as input. 2. Read the zip file using ZipInputStream 3. Get the zip file list ... Read More »
Home > Java Core (page 6)
Java Core
Java Utility To Compress Files/Folder In Zip Format
Java provides “java.util.zip” library to compress files/folder in zip format. Steps to follow – 1. Take folder/files path as input. 2. Create a ZipOutputStream 3. Check if folder is empty or not. If the folder is empty, we will simply add the empty folder in zip, else we will read all the files and will add every files to zip. ... Read More »
Jkoder.com Tutorials, Tips and interview questions for Java, J2EE, Android, Spring, Hibernate, Javascript and other languages for software developers