| Modifier and Type | Field and Description |
|---|---|
static int |
BUF_SIZE
Buffer size.
|
| Constructor and Description |
|---|
Gzip()
Creates a new Gzip instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addArchiveListener(ArchiveListener listener)
Adds listeners.
|
void |
compress(java.io.File file)
GZIP the input file.
|
void |
compress(java.io.File file,
java.io.File output)
GZIP the input file to specified output file or directory.
|
void |
decompress(java.io.File file)
GUNZIP the input archive.
|
void |
decompress(java.io.File file,
java.io.File output)
GUNZIP the input archive to specified output directory.
|
void |
removeArchiveListener(ArchiveListener listener)
Remove listeners.
|
public static final int BUF_SIZE
public void compress(java.io.File file)
throws ArchiveException
compress in interface Archivefile - the file to compressArchiveException - if error occurspublic void compress(java.io.File file,
java.io.File output)
throws ArchiveException
compress in interface Archivefile - the file to compressoutput - the output file or directory to write toArchiveException - if error occurspublic void decompress(java.io.File file)
throws ArchiveException
decompress in interface Archivefile - the file to decompress.ArchiveException - if error occurspublic void decompress(java.io.File file,
java.io.File output)
throws ArchiveException
decompress in interface Archivefile - the file to decompressoutput - the directory for decompress the GZIP fileArchiveException - if error occurspublic void addArchiveListener(ArchiveListener listener)
addArchiveListener in interface Archivelistener - the listener*public void removeArchiveListener(ArchiveListener listener)
removeArchiveListener in interface Archivelistener - the listenerArchive.removeArchiveListener(ArchiveListener)Copyright © JSCAPE LLC. 1999-2021. All Rights Reserved