edu.wisc.ssec.mcidasv.util
Class BackgroundUnzipper
java.lang.Object
javax.swing.SwingWorker<Long,Long>
edu.wisc.ssec.mcidasv.util.BackgroundUnzipper
- All Implemented Interfaces:
- Runnable, Future<Long>, RunnableFuture<Long>
public class BackgroundUnzipper
- extends SwingWorker<Long,Long>
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 |
zipFile
private final String zipFile
countingStream
private BackgroundUnzipper.CountingInputStream countingStream
zipStream
private ZipInputStream zipStream
totalSize
private long totalSize
currentEntry
private String currentEntry
taskPerformer
private final ActionListener taskPerformer
taskTimer
private final Timer taskTimer
BackgroundUnzipper
public BackgroundUnzipper(String zipFile)
getCurrentBytes
public Long getCurrentBytes()
getCurrentEntry
public String getCurrentEntry()
getPercentage
public long getPercentage()
doInBackground
protected Long doInBackground()
throws Exception
- Specified by:
doInBackground
in class SwingWorker<Long,Long>
- Throws:
Exception
process
protected void process(List<Long> durr)
- Overrides:
process
in class SwingWorker<Long,Long>
getInputStream
private InputStream getInputStream(String path)