G
Gelöschtes Mitglied 76266
Gast
Hi
Java offers developers many possibilities to invent or to develop fancy apps. ZIP is known as a data compression technology. GNU optimized the compression algorithm and named it GZIP (Gnu ZIP). But GZIP works mainly with a data stream (e.g. used by HTTP for the WEB). To compress files or directories with GZIP you need to develop your own app. And I did: JZIP for Java ZIP.
JZIP has only 3 sources:
Some screenshots for your reviews:
Java offers developers many possibilities to invent or to develop fancy apps. ZIP is known as a data compression technology. GNU optimized the compression algorithm and named it GZIP (Gnu ZIP). But GZIP works mainly with a data stream (e.g. used by HTTP for the WEB). To compress files or directories with GZIP you need to develop your own app. And I did: JZIP for Java ZIP.
JZIP has only 3 sources:
- JZIP.java: the GUI frame
- JZIPIOStream.java: the IO with ZIP or GZIP -dependent on the specified format.
- joe.css: the CSS file used by JZIP
Java:
0 1 2 5 6 n
+--------------+-------------+-----//-------+----------//----------+
! path length ! data length ! path-name ! data !
+--------------+-------------+----//--------+---------//-----------+
path length gives the path name length (in bytes). Max 256 bytes
data length gives the number of bytes of the file content
Example:
/JoeApp/jzip/JZIP.java: path length = 22 bytes (absolute) or relative without directory: 9 bytes
Two ArrayLists are used to list the path/file names and contents (in bytes)