Inspecting Compressed Archive Contents Without Extraction in Linux
Viewing the contents of compressed archives without explicitly decompressing them first often relies on background temporary directories (typically /tmp), where contents are silently extracted for reading. After a system reboot, these temporary files are discarded.
Archives and compressed files differ slightly: archiving combines multiple files ...
Posted on Thu, 10 Sep 2026 16:26:39 +0000 by snaack
Renaming ZIP Files in Java
In Java, renaming a ZIP file is no different from renaming any regular file on the filesystem. The operation does not require interacting with the contents of the archive—it only involves changing the file's name in the directory structure.
Approach Using java.io.File
The standard way to rename a file in Java (including ZIP archives) is by usin ...
Posted on Wed, 24 Jun 2026 18:26:05 +0000 by snday
Compressing Files into ZIP Archives in Java
Overview
Java provides built-in classes in the java.util.zip package for creating ZIP archives. The ZipOutputStream class handles the compression process, while ZipEntry represents individual files within the archive.
Implementation
Creating the ZIP Output Stream
First, establish the output stream for the archive file:
import java.io.FileOutput ...
Posted on Fri, 08 May 2026 14:50:53 +0000 by madkris