mirror of
https://github.com/Maschell/JNUSLib.git
synced 2024-11-22 07:59:19 +01:00
Some clean up
This commit is contained in:
parent
0ed359a43a
commit
96e048b4b5
@ -46,9 +46,6 @@ public final class DecryptionService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private DecryptionService(FSTDataProvider dataProvider) {
|
private DecryptionService(FSTDataProvider dataProvider) {
|
||||||
// if (dataProvider instanceof Parallelizable) {
|
|
||||||
// parallelizable = true;
|
|
||||||
// }
|
|
||||||
this.dataProvider = dataProvider;
|
this.dataProvider = dataProvider;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -87,8 +84,6 @@ public final class DecryptionService {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
File target = new File(targetFilePath);
|
|
||||||
|
|
||||||
if (skipExistingFile) {
|
if (skipExistingFile) {
|
||||||
File targetFile = new File(targetFilePath);
|
File targetFile = new File(targetFilePath);
|
||||||
if (targetFile.exists()) {
|
if (targetFile.exists()) {
|
||||||
@ -106,9 +101,10 @@ public final class DecryptionService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
File target = new File(targetFilePath);
|
||||||
|
|
||||||
// to avoid having fragmented files.
|
// to avoid having fragmented files.
|
||||||
FileUtils.FileAsOutputStreamWrapper(new File(targetFilePath), entry.getFileSize(),
|
FileUtils.FileAsOutputStreamWrapper(target, entry.getFileSize(), newOutputStream -> decryptFSTEntryToStream(entry, newOutputStream));
|
||||||
newOutputStream -> decryptFSTEntryToStream(entry, newOutputStream));
|
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
throw new CompletionException(ex);
|
throw new CompletionException(ex);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user