mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-03 09:49:19 +02:00
sync with premium version
This commit is contained in:
parent
2be210d0bb
commit
3406bc5e8f
1 changed files with 16 additions and 0 deletions
|
@ -19,6 +19,22 @@ public final class ZipFile {
|
|||
|
||||
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) {
|
||||
myStreamHolder = streamHolder;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue