|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.core.io.Bzip2Utils
public class Bzip2Utils
Helper class for bzip2 related operations.
| Field Summary | |
|---|---|
static String |
EXTENSION
the default extension. |
| Constructor Summary | |
|---|---|
Bzip2Utils()
|
|
| Method Summary | |
|---|---|
static String |
compress(File inputFile,
int buffer)
Compresses the specified file to a file with the ".bz2" extension. |
static String |
compress(File inputFile,
int buffer,
File outputFile)
Compresses the specified file. |
static String |
compress(File inputFile,
int buffer,
File outputFile,
boolean removeInput)
Compresses the specified file. |
static String |
decompress(File archiveFile,
int buffer)
Decompresses the specified archive to a file without the ".bz2" extension. |
static String |
decompress(File archiveFile,
int buffer,
File outputFile)
Decompresses the specified archive. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String EXTENSION
| Constructor Detail |
|---|
public Bzip2Utils()
| Method Detail |
|---|
public static String decompress(File archiveFile,
int buffer)
archiveFile - the archive file to decompressbuffer - the buffer size to use
public static String decompress(File archiveFile,
int buffer,
File outputFile)
archiveFile - the archive file to decompressbuffer - the buffer size to useoutputFile - the destination file
public static String compress(File inputFile,
int buffer)
inputFile - the file to compressbuffer - the buffer size to use
public static String compress(File inputFile,
int buffer,
File outputFile)
inputFile - the file to compressbuffer - the buffer size to useoutputFile - the destination file (the archive)
public static String compress(File inputFile,
int buffer,
File outputFile,
boolean removeInput)
inputFile - the file to compressbuffer - the buffer size to useoutputFile - the destination file (the archive)removeInput - whether to remove the input file
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||