|
Secure iNet Factory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jscape.zip.Gzip
public class Gzip
Implements the basic functionality of GZIP compression and decompression.
Field Summary | |
---|---|
static int |
BUF_SIZE
Buffer size. |
Constructor Summary | |
---|---|
Gzip()
Creates a new Gzip instance. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int BUF_SIZE
Constructor Detail |
---|
public Gzip()
Method Detail |
---|
public void compress(java.io.File file) throws ArchiveException
compress
in interface Archive
file
- the file to compress
ArchiveException
- if error occurspublic void compress(java.io.File file, java.io.File output) throws ArchiveException
compress
in interface Archive
file
- the file to compressoutput
- the output file or directory to write to
ArchiveException
- if error occurspublic void decompress(java.io.File file) throws ArchiveException
decompress
in interface Archive
file
- the file to decompress.
ArchiveException
- if error occurspublic void decompress(java.io.File file, java.io.File output) throws ArchiveException
decompress
in interface Archive
file
- the file to decompressoutput
- the directory for decompress the GZIP file
ArchiveException
- if error occurspublic void addArchiveListener(ArchiveListener listener)
addArchiveListener
in interface Archive
listener
- the listener*
public void removeArchiveListener(ArchiveListener listener)
removeArchiveListener
in interface Archive
listener
- the listenerArchive.removeArchiveListener(ArchiveListener)
|
Secure iNet Factory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |