mirror of
https://github.com/Maschell/JNUSLib.git
synced 2024-11-25 01:16:55 +01:00
Fix size parametet for the readContentAsStream function
This commit is contained in:
parent
e3be1f5a33
commit
1c17a668d8
@ -35,7 +35,7 @@ public interface NUSDataProvider {
|
|||||||
}
|
}
|
||||||
|
|
||||||
default public InputStream readContentAsStream(Content content, long offset) throws IOException {
|
default public InputStream readContentAsStream(Content content, long offset) throws IOException {
|
||||||
return readContentAsStream(content, offset, content.getEncryptedFileSize() - offset);
|
return readContentAsStream(content, offset, content.getEncryptedFileSizeAligned() - offset);
|
||||||
}
|
}
|
||||||
|
|
||||||
public InputStream readContentAsStream(Content content, long offset, long size) throws IOException;
|
public InputStream readContentAsStream(Content content, long offset, long size) throws IOException;
|
||||||
|
Loading…
Reference in New Issue
Block a user