public class BackgroundUnzipper extends javax.swing.SwingWorker<java.lang.Long,java.lang.Long>
Modifier and Type | Class and Description |
---|---|
static class |
BackgroundUnzipper.CountingInputStream |
Modifier and Type | Field and Description |
---|---|
private BackgroundUnzipper.CountingInputStream |
countingStream |
private java.lang.String |
currentEntry |
private java.awt.event.ActionListener |
taskPerformer |
private javax.swing.Timer |
taskTimer |
private long |
totalSize |
private java.lang.String |
zipFile |
private java.util.zip.ZipInputStream |
zipStream |
Constructor and Description |
---|
BackgroundUnzipper(java.lang.String zipFile) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Long |
doInBackground() |
java.lang.Long |
getCurrentBytes() |
java.lang.String |
getCurrentEntry() |
private java.io.InputStream |
getInputStream(java.lang.String path) |
long |
getPercentage() |
protected void |
process(java.util.List<java.lang.Long> durr) |
private final java.lang.String zipFile
private BackgroundUnzipper.CountingInputStream countingStream
private java.util.zip.ZipInputStream zipStream
private long totalSize
private java.lang.String currentEntry
private final java.awt.event.ActionListener taskPerformer
private final javax.swing.Timer taskTimer
public BackgroundUnzipper(java.lang.String zipFile)
public java.lang.Long getCurrentBytes()
public java.lang.String getCurrentEntry()
public long getPercentage()
protected java.lang.Long doInBackground() throws java.lang.Exception
doInBackground
in class javax.swing.SwingWorker<java.lang.Long,java.lang.Long>
java.lang.Exception
protected void process(java.util.List<java.lang.Long> durr)
process
in class javax.swing.SwingWorker<java.lang.Long,java.lang.Long>
private java.io.InputStream getInputStream(java.lang.String path)