1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-03 17:59:33 +02:00

sync with premium version

This commit is contained in:
Nikolay Pultsin 2015-09-30 20:08:51 +01:00
parent 2be210d0bb
commit 3406bc5e8f

View file

@ -19,6 +19,22 @@ public final class ZipFile {
private boolean myAllFilesAreRead; private boolean myAllFilesAreRead;
public ZipFile(final String fileName) {
this(new InputStreamHolder() {
public InputStream getInputStream() throws IOException {
return new FileInputStream(fileName);
}
});
}
public ZipFile(final File file) {
this(new InputStreamHolder() {
public InputStream getInputStream() throws IOException {
return new FileInputStream(file);
}
});
}
public ZipFile(InputStreamHolder streamHolder) { public ZipFile(InputStreamHolder streamHolder) {
myStreamHolder = streamHolder; myStreamHolder = streamHolder;
} }