public class ZipArchiver<C extends ApplicationContext> extends AbstractArchiver<C>
measureStreamchildTaskRef, isTestMode, monitorController, resultRef, stateFlag| Constructor and Description |
|---|
ZipArchiver(C ctx) |
ZipArchiver(C ctx,
ArchiveInputList inputList) |
ZipArchiver(C ctx,
java.io.File zipOutFile) |
ZipArchiver(C ctx,
java.io.File zipOutFile,
ArchiveInputList inputList) |
ZipArchiver(C ctx,
LogChannel logCh,
java.io.File zipOutFile,
ArchiveInputList inputList) |
| Modifier and Type | Method and Description |
|---|---|
void |
addZipEntry(java.io.InputStream inStream,
java.lang.String entryName)
Allows for dynamically adding a stream entry during execution.
|
FileType |
getArchiveType() |
protected void |
performFillArchive()
May be overridden to add zip-entries during execution.
|
protected void |
processArchiving(java.io.File archiveFile,
ArchiveInputList inputList) |
void |
setCompressionLevel(CompressionLevel level)
Defines the level of compression for the archiver.
|
void |
setEncoding(java.lang.String encoding)
Allows for setting the encoding for the used
ZipOutputStream. |
addDirectory, addDirectory, addFile, addFiles, checkDirectoryExists, checkFileExists, checkHasArchivedFiles, createCleanupFileOutputStream, doOnAddingArchiveEntry, executeAsync, getSourceRootDir, incrementArchivedFileCount, setArchiveFile, setRemoveSourceFiles, setRootDirectory, setSourceRootDiraddMonitor, checkCancelled, checkForErrorAndRethrow, clearMonitors, createRunStateFlag, doOnCancel, doOnFailure, execute, executeSubTask, getError, getMaxProgressSteps, getMonitorCount, getMonitors, getName, getProgressStepCount, getResult, getRunStateFlag, getTaskId, getType, handleCancellation, handleFailure, handleFinish, handleStart, handleSuccess, hasError, hasMonitor, isCancellable, notifyProceeded, registerTaskStateChange, removeMonitor, resetProgress, setCancellable, setLogLevel, setMaxProgressSteps, setMonitor, setName, setName, setResult, setRunStateFlag, setTaskId, setType, shouldFireMonitor, sleepChecked, wasCancelledgetApplicationContext, getLogChannel, isLogDebug, isLogVerbose, logDebug, logDump, logError, logError, logFatal, logInfo, logVerbose, logWarning, setLogChannelconfigureDumpHeadlineLength, configureDumpMaxElementsPrinted, copyDumpStringValues, copyToStringValues, createDumpHeader, toDumpString, toDumpString, toString, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetApplicationContextgetLogChannel, isLogDebug, isLogVerbose, logDebug, logDump, logError, logError, logFatal, logInfo, logVerbose, logWarning, setLogChannelpublic ZipArchiver(C ctx)
public ZipArchiver(C ctx, java.io.File zipOutFile)
public ZipArchiver(C ctx, ArchiveInputList inputList)
public ZipArchiver(C ctx, java.io.File zipOutFile, ArchiveInputList inputList)
public ZipArchiver(C ctx, LogChannel logCh, java.io.File zipOutFile, ArchiveInputList inputList)
public void setEncoding(java.lang.String encoding)
ZipOutputStream.
Note that on windows platforms the encoding IBM437 serves best for german Umlaute.public FileType getArchiveType()
getArchiveType in class AbstractArchiver<C extends ApplicationContext>public void setCompressionLevel(CompressionLevel level)
public void addZipEntry(java.io.InputStream inStream,
java.lang.String entryName)
throws java.lang.Exception
performFillArchive().java.lang.Exceptionprotected void performFillArchive()
throws java.lang.Exception
java.lang.ExceptionaddZipEntry(InputStream, String)protected final void processArchiving(java.io.File archiveFile,
ArchiveInputList inputList)
throws java.lang.Exception
processArchiving in class AbstractArchiver<C extends ApplicationContext>java.lang.ExceptionCopyright © 2014 EsprIT-Systems. All Rights Reserved.