public class ZipArchiver<C extends ApplicationContext> extends AbstractArchiver<C>
measureStream
childTaskRef, 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, setSourceRootDir
addMonitor, 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, wasCancelled
getApplicationContext, getLogChannel, isLogDebug, isLogVerbose, logDebug, logDump, logError, logError, logFatal, logInfo, logVerbose, logWarning, setLogChannel
configureDumpHeadlineLength, configureDumpMaxElementsPrinted, copyDumpStringValues, copyToStringValues, createDumpHeader, toDumpString, toDumpString, toString, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getApplicationContext
getLogChannel, isLogDebug, isLogVerbose, logDebug, logDump, logError, logError, logFatal, logInfo, logVerbose, logWarning, setLogChannel
public 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.Exception
protected void performFillArchive() throws java.lang.Exception
java.lang.Exception
addZipEntry(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.Exception
Copyright © 2014 EsprIT-Systems. All Rights Reserved.