| java.lang.Object gnu.bytecode.ZipArchive
ZipArchive | public class ZipArchive (Code) | | 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.
author: Per Bothner |
Method Summary | |
ZipMember | addMember(String name) | public ZipMember | append(String name, byte[] contents) | public void | close() | public static long | copy(InputStream in, OutputStream out, byte[] buffer) | public static void | copy(InputStream in, String name, byte[] buffer) | public ZipMember | find(String name) Return a directory entry with the given name, or null if not found. | public static void | main(String args) Manipulate a .zip archive using a tar-like interface. | void | readDirectory() | public int | size() | void | write2(int val, byte[] buffer, int pos) | void | write4(int val, byte[] buffer, int pos) | void | writeCentralHeader(ZipMember zmember) | void | writeEndHeaders() | void | writeLocalHeader(ZipMember zmember) |
CREC_SIZE | final static int CREC_SIZE(Code) | | |
C_COMPRESSED_SIZE | final static int C_COMPRESSED_SIZE(Code) | | |
C_FILENAME_LENGTH | final static int C_FILENAME_LENGTH(Code) | | |
C_RELATIVE_OFFSET_LOCAL_HEADER | final static int C_RELATIVE_OFFSET_LOCAL_HEADER(Code) | | |
C_UNCOMPRESSED_SIZE | final static int C_UNCOMPRESSED_SIZE(Code) | | |
ECREC_SIZE | final static int ECREC_SIZE(Code) | | |
LREC_SIZE | final static int LREC_SIZE(Code) | | |
SIZE_CENTRAL_DIRECTORY | final static int SIZE_CENTRAL_DIRECTORY(Code) | | |
TOTAL_ENTRIES_CENTRAL_DIR | final static int TOTAL_ENTRIES_CENTRAL_DIR(Code) | | |
find | public ZipMember find(String name)(Code) | | Return a directory entry with the given name, or null if not found.
|
main | public static void main(String args) throws IOException(Code) | | 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.
|
write2 | void write2(int val, byte[] buffer, int pos)(Code) | | |
write4 | void write4(int val, byte[] buffer, int pos)(Code) | | |
|
|