|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.geosolutions.tools.compress.file.Compressor
public final class Compressor
| Constructor Summary | |
|---|---|
Compressor()
|
|
| Method Summary | |
|---|---|
static File |
deflate(File outputDir,
File zipFile,
File[] files,
boolean overwrite)
|
static File |
deflate(File inputDir,
String zipFilePrefix)
Zip all the files in the input directory which starts with the provided prefix. |
static File |
deflate(File outputDir,
String zipFileBaseName,
File folder)
Deprecated. TODO UNTESTED |
static File |
deflate(File outputDir,
String zipFileBaseName,
File[] files)
|
static File |
zip(File outputDir,
String zipFileBaseName,
File[] files)
This function zip the input files. |
static void |
zipDirectory(File directory,
File base,
ZipOutputStream out)
This function zip the input directory. |
static void |
zipFile(File file,
ZipOutputStream out)
This function zip the input file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Compressor()
| Method Detail |
|---|
public static File deflate(File inputDir,
String zipFilePrefix)
inputDir - directory where to get files from.zipFilePrefix - prefix to choose files.
File that points to the generated zip file, or null.
public static File deflate(File outputDir,
String zipFileBaseName,
File[] files)
outputDir - The directory where the zipfile will be createdzipFileBaseName - The basename of hte zip file (i.e.: a .zip will be appended)files - The files that will be put into the zipfile
public static File deflate(File outputDir,
File zipFile,
File[] files,
boolean overwrite)
public static File deflate(File outputDir,
String zipFileBaseName,
File folder)
outputDir - The directory where the zipfile will be createdzipFileBaseName - The basename of hte zip file (i.e.: a .zip will be appended)folder - The folder that will be compressed
public static File zip(File outputDir,
String zipFileBaseName,
File[] files)
throws IOException
outputDir - The temporary directory where the zip files.zipFileBaseName - The name of the zip file.files - The array files to zip.
IOException
public static void zipDirectory(File directory,
File base,
ZipOutputStream out)
throws IOException
directory - The directory to be zipped.base - The base directory.out - The zip output stream.
IOException
public static void zipFile(File file,
ZipOutputStream out)
throws IOException
file - The input file to be zipped.out - The zip output stream.
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||