public class BackgroundUnzipper extends SwingWorker<Long,Long>
| Modifier and Type | Class and Description |
|---|---|
static class |
BackgroundUnzipper.CountingInputStream |
SwingWorker.StateValue| Modifier and Type | Field and Description |
|---|---|
private BackgroundUnzipper.CountingInputStream |
countingStream |
private String |
currentEntry |
private ActionListener |
taskPerformer |
private Timer |
taskTimer |
private long |
totalSize |
private String |
zipFile |
private ZipInputStream |
zipStream |
| Constructor and Description |
|---|
BackgroundUnzipper(String zipFile) |
| Modifier and Type | Method and Description |
|---|---|
protected Long |
doInBackground() |
Long |
getCurrentBytes() |
String |
getCurrentEntry() |
private InputStream |
getInputStream(String path) |
long |
getPercentage() |
protected void |
process(List<Long> durr) |
addPropertyChangeListener, cancel, done, execute, firePropertyChange, get, get, getProgress, getPropertyChangeSupport, getState, isCancelled, isDone, publish, removePropertyChangeListener, run, setProgressprivate BackgroundUnzipper.CountingInputStream countingStream
private ZipInputStream zipStream
private long totalSize
private String currentEntry
private final ActionListener taskPerformer
public BackgroundUnzipper(String zipFile)
public Long getCurrentBytes()
public String getCurrentEntry()
public long getPercentage()
protected Long doInBackground() throws Exception
doInBackground in class SwingWorker<Long,Long>Exceptionprivate InputStream getInputStream(String path)