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

Merge branch 'ice-cream-sandwich' into yota2

This commit is contained in:
Nikolay Pultsin 2015-09-30 20:09:07 +01:00
commit c61b037ce9

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;
} }