mirror of
https://github.com/Maschell/JNUSLib.git
synced 2024-11-16 04:59:20 +01:00
Add default readFileToStream function wthout offset/size
This commit is contained in:
parent
156fcd02df
commit
0ed359a43a
@ -116,7 +116,7 @@ public final class DecryptionService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void decryptFSTEntryToStream(FSTEntry entry, OutputStream outputStream) throws IOException {
|
public void decryptFSTEntryToStream(FSTEntry entry, OutputStream outputStream) throws IOException {
|
||||||
dataProvider.readFileToStream(outputStream, entry, 0);
|
dataProvider.readFileToStream(outputStream, entry);
|
||||||
}
|
}
|
||||||
|
|
||||||
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||||
|
@ -62,6 +62,10 @@ public interface FSTDataProvider {
|
|||||||
return in;
|
return in;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
default public boolean readFileToStream(OutputStream out, FSTEntry entry) throws IOException {
|
||||||
|
return readFileToStream(out, entry, 0, entry.getFileSize());
|
||||||
|
}
|
||||||
|
|
||||||
default public boolean readFileToStream(OutputStream out, FSTEntry entry, long offset) throws IOException {
|
default public boolean readFileToStream(OutputStream out, FSTEntry entry, long offset) throws IOException {
|
||||||
return readFileToStream(out, entry, offset, entry.getFileSize());
|
return readFileToStream(out, entry, offset, entry.getFileSize());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user