public class OZIPCompressionUtil extends Object
Constructor and Description |
---|
OZIPCompressionUtil() |
Modifier and Type | Method and Description |
---|---|
static List<String> |
compressDirectory(String sourceFolderName,
ZipOutputStream zos,
String[] iSkipFileExtensions,
OCommandOutputListener iOutput) |
static void |
compressFile(String folderName,
String entryName,
OutputStream output,
OCommandOutputListener iOutput,
int compressionLevel) |
static void |
compressFiles(String baseDirectory,
Map<String,String> fileNames,
OutputStream output,
OCommandOutputListener listener,
int compressionLevel)
Compresses the given files stored at the given base directory into a zip archive.
|
static void |
compressFiles(String folderName,
String[] entryNames,
OutputStream output,
OCommandOutputListener iOutput,
int compressionLevel) |
static void |
uncompressDirectory(InputStream in,
String out,
OCommandOutputListener iListener)
Extract zipfile to outdir with complete directory structure
|
public static List<String> compressDirectory(String sourceFolderName, ZipOutputStream zos, String[] iSkipFileExtensions, OCommandOutputListener iOutput) throws IOException
IOException
public static void uncompressDirectory(InputStream in, String out, OCommandOutputListener iListener) throws IOException
IOException
public static void compressFile(String folderName, String entryName, OutputStream output, OCommandOutputListener iOutput, int compressionLevel) throws IOException
IOException
public static void compressFiles(String folderName, String[] entryNames, OutputStream output, OCommandOutputListener iOutput, int compressionLevel) throws IOException
IOException
public static void compressFiles(String baseDirectory, Map<String,String> fileNames, OutputStream output, OCommandOutputListener listener, int compressionLevel) throws IOException
baseDirectory
- the base directory where files are stored.fileNames
- the file names map, keys are the file names stored on disk, values are the
file names to be stored in a zip archive.output
- the output stream.listener
- the command listener.compressionLevel
- the desired compression level.IOException
Copyright © 2009–2020 OrientDB. All rights reserved.