Package edu.wisc.ssec.mcidasv.util
Class BackgroundUnzipper
- All Implemented Interfaces:
Runnable
,Future<Long>
,RunnableFuture<Long>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class javax.swing.SwingWorker
SwingWorker.StateValue
Nested classes/interfaces inherited from interface java.util.concurrent.Future
Future.State
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
private static final org.slf4j.Logger
private final ActionListener
private final Timer
private long
private final String
private ZipInputStream
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Long
private InputStream
getInputStream
(String path) long
protected void
Methods inherited from class javax.swing.SwingWorker
addPropertyChangeListener, cancel, done, execute, firePropertyChange, get, get, getProgress, getPropertyChangeSupport, getState, isCancelled, isDone, publish, removePropertyChangeListener, run, setProgress
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.concurrent.Future
exceptionNow, resultNow, state
-
Field Details
-
logger
-
zipFile
-
countingStream
-
zipStream
-
totalSize
-
currentEntry
-
taskPerformer
-
taskTimer
-
-
Constructor Details
-
BackgroundUnzipper
-
-
Method Details
-
getCurrentBytes
-
getCurrentEntry
-
getPercentage
-
doInBackground
- Specified by:
doInBackground
in classSwingWorker<Long,
Long> - Throws:
Exception
-
process
- Overrides:
process
in classSwingWorker<Long,
Long>
-
getInputStream
-