JNUSTool/src/de/mas/jnustool/FEntryDownloader.java
Maschell 85f87c57bb Added download of encrypted content
- Decryption from files
- Decryption to new folder structures
- updates csv with version numbers
- download and decrypt different versions (gui only)
2016-03-02 19:48:04 +01:00

33 lines
657 B
Java

package de.mas.jnustool;
import java.util.concurrent.Callable;
public class FEntryDownloader implements Callable<Integer>
{
FEntry f;
Progress progress = null;
public void setTitle(FEntry f){
this.f = f;
}
public FEntryDownloader(FEntry f,Progress fatherProgress){
setTitle(f);
createProgressListener(fatherProgress);
}
private void createProgressListener(Progress fatherProgress) {
if(fatherProgress != null){
progress = new Progress();
fatherProgress.add(progress);
progress.addTotal(f.getFileLength());
}
}
@Override
public Integer call() throws Exception {
f.downloadAndDecrypt(progress);
return null;
}
}