public class ZipExtractor<C extends ApplicationContext> extends AbstractArchiveExtractor<C,ZipArchiveEntry>
ProgressInputStream
.childTaskRef, isTestMode, monitorController, resultRef, stateFlag
Constructor and Description |
---|
ZipExtractor(C ctx,
java.io.File targetDir) |
ZipExtractor(C ctx,
java.io.File targetDir,
java.io.File archiveFile,
ArchiveEntryFilter filter) |
ZipExtractor(C ctx,
LogChannel logCh,
java.io.File targetDir) |
ZipExtractor(C ctx,
LogChannel logCh,
java.io.File targetDir,
java.io.File archiveFile) |
ZipExtractor(C ctx,
LogChannel logCh,
java.io.File targetDir,
java.io.File archiveFile,
ArchiveEntryFilter filter) |
Modifier and Type | Method and Description |
---|---|
protected FileType |
getArchiveType() |
ProgressInputStream |
getProgressInputStream() |
protected void |
processArchive() |
void |
setEncoding(java.lang.String encoding)
Allows for setting the encoding for the used
ZipInputStream . |
void |
setInputStream(java.io.InputStream inStream,
FileInfo info)
Sets the input stream to be read.
|
void |
setInputStream(ProgressInputStream inStream) |
checkStreamAccess, createOutputStream, displayArchiveEntry, displayHeader, doOnDirectoryCreated, doOnFileCreated, doOnFileCreating, executeAsync, extractAsDirectory, extractToFile, getInputFile, getTargetDir, isShouldExtract, setExtractionFilter, setInputFile, setTargetDir
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 ZipExtractor(C ctx, java.io.File targetDir)
public ZipExtractor(C ctx, LogChannel logCh, java.io.File targetDir)
public ZipExtractor(C ctx, LogChannel logCh, java.io.File targetDir, java.io.File archiveFile)
public ZipExtractor(C ctx, java.io.File targetDir, java.io.File archiveFile, ArchiveEntryFilter filter)
public ZipExtractor(C ctx, LogChannel logCh, java.io.File targetDir, java.io.File archiveFile, ArchiveEntryFilter filter)
public void setEncoding(java.lang.String encoding)
ZipInputStream
.
Note that on windows platforms the encoding IBM437 serves best for german Umlaute.protected final FileType getArchiveType()
getArchiveType
in class AbstractArchiveExtractor<C extends ApplicationContext,ZipArchiveEntry>
public void setInputStream(java.io.InputStream inStream, FileInfo info)
public void setInputStream(ProgressInputStream inStream)
protected void processArchive() throws java.lang.Exception
processArchive
in class AbstractArchiveExtractor<C extends ApplicationContext,ZipArchiveEntry>
java.lang.Exception
public ProgressInputStream getProgressInputStream()
Copyright © 2014 EsprIT-Systems. All Rights Reserved.