gnu.bytecode

Class ZipArchive


public class ZipArchive
extends java.lang.Object

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.

Method Summary

static long
copy(InputStream in, OutputStream out, byte[] buffer)
static void
copy(InputStream in, String name, byte[] buffer)
static void
main(args[] )
Manipulate a .zip archive using a tar-like interface.

Method Details

copy

public static long copy(InputStream in,
                        OutputStream out,
                        byte[] buffer)
            throws IOException

copy

public static void copy(InputStream in,
                        String name,
                        byte[] buffer)
            throws IOException

main

public static void main(args[] )
            throws IOException
Manipulate a .zip archive using a tar-like interface.

Usage: ZipArchive command archive [file ...]

ZipArchive tarchive file
ZipArchive xarchive file
ZipArchive parchive file
ZipArchiveptxarchive
ZipArchive qarchive file