|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrailo.commons.io.CompressUtil
public final class CompressUtil
Util to manipulate zip files
Field Summary | |
---|---|
static int |
FORMAT_BZIP
Field FORMAT_BZIP |
static int |
FORMAT_BZIP2
Field FORMAT_BZIP |
static int |
FORMAT_GZIP
Field FORMAT_GZIP |
static int |
FORMAT_TAR
Field FORMAT_TAR |
static int |
FORMAT_TBZ
Field FORMAT_TBZ |
static int |
FORMAT_TBZ2
Field FORMAT_TBZ2 |
static int |
FORMAT_TGZ
Field FORMAT_TGZ |
static int |
FORMAT_ZIP
Field FORMAT_ZIP |
Method Summary | |
---|---|
static void |
compress(int format,
Resource[] sources,
Resource target,
int mode)
compress data to a zip file |
static void |
compress(int format,
Resource source,
Resource target,
boolean includeBaseFolder,
int mode)
compress data to a zip file |
static void |
compressGZip(InputStream source,
OutputStream target)
|
static void |
compressTar(Resource[] sources,
OutputStream target,
int mode)
|
static void |
compressTar(Resource[] sources,
Resource target,
int mode)
compress a source file/directory to a tar file |
static void |
compressTar(String parent,
Resource[] sources,
org.apache.commons.compress.archivers.tar.TarOutputStream tos,
int mode)
|
static void |
compressTGZ(Resource[] sources,
Resource target,
int mode)
compress a source file/directory to a tar/gzip file |
static void |
compressZip(Resource[] sources,
Resource target,
ResourceFilter filter)
compress a source file/directory to a zip file |
static void |
compressZip(Resource[] sources,
ZipOutputStream zos,
ResourceFilter filter)
|
static void |
extract(int format,
Resource[] sources,
Resource target)
extract a zip file to a directory |
static void |
extract(int format,
Resource source,
Resource target)
extract a zip file to a directory |
static void |
main(String[] args)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int FORMAT_ZIP
FORMAT_ZIP
public static final int FORMAT_TAR
FORMAT_TAR
public static final int FORMAT_TGZ
FORMAT_TGZ
public static final int FORMAT_GZIP
FORMAT_GZIP
public static final int FORMAT_BZIP
FORMAT_BZIP
public static final int FORMAT_BZIP2
FORMAT_BZIP
public static final int FORMAT_TBZ
FORMAT_TBZ
public static final int FORMAT_TBZ2
FORMAT_TBZ2
Method Detail |
---|
public static void extract(int format, Resource source, Resource target) throws IOException
format
- source
- target
-
IOException
public static void extract(int format, Resource[] sources, Resource target) throws IOException
format
- sources
- target
-
IOException
public static void compress(int format, Resource source, Resource target, boolean includeBaseFolder, int mode) throws IOException
format
- format it that should by compressed usally is CompressUtil.FORMAT_XYZsource
- target
- includeBaseFolder
- mode
-
IOException
public static void compress(int format, Resource[] sources, Resource target, int mode) throws IOException
format
- format it that should by compressed usally is CompressUtil.FORMAT_XYZsources
- target
- mode
-
IOException
public static void compressTGZ(Resource[] sources, Resource target, int mode) throws IOException
sources
- target
- mode
-
IOException
public static void compressGZip(InputStream source, OutputStream target) throws IOException
IOException
public static void compressZip(Resource[] sources, Resource target, ResourceFilter filter) throws IOException
sources
- target
- filter
-
IOException
public static void compressZip(Resource[] sources, ZipOutputStream zos, ResourceFilter filter) throws IOException
IOException
public static void compressTar(Resource[] sources, Resource target, int mode) throws IOException
sources
- target
- mode
-
IOException
public static void compressTar(Resource[] sources, OutputStream target, int mode) throws IOException
IOException
public static void compressTar(String parent, Resource[] sources, org.apache.commons.compress.archivers.tar.TarOutputStream tos, int mode) throws IOException
IOException
public static void main(String[] args) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |