Package gnu.bytecode
Class ZipArchive
java.lang.Object
gnu.bytecode.ZipArchive
A class to manipulate a .zip archive.
Does not handle compression/uncompression, though that could be added.
When used an an application. provides a simplified tar-like interface.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic long
copy
(InputStream in, OutputStream out, byte[] buffer) static void
copy
(InputStream in, String name, byte[] buffer) static void
Manipulate a .zip archive using a tar-like interface.
-
Constructor Details
-
ZipArchive
public ZipArchive()
-
-
Method Details
-
copy
- Throws:
IOException
-
copy
- Throws:
IOException
-
main
Manipulate a .zip archive using a tar-like interface.Usage:
ZipArchive
command archive [file ...]ZipArchive t
archive file ...- List information about the named members of the archive.
ZipArchive x
archive file ...- Extract the named members from the archive.
ZipArchive p
archive file ...- Print the named members from the archive on standard output. Prints just the raw contents, with no headers or conversion.
ZipArchive
[ptx
] archive- With no arguments, does each command for every member in the archive.
ZipArchive q
archive file ...- Add the named files to the end of archive. Does not check for duplicates.
- Throws:
IOException
-