实现epub的懒加载(未经广泛测试)

pull/1754/head
ag2s20150909 3 years ago
parent e8e368935a
commit dd9917ff0a
  1. 2
      epublib/src/main/java/me/ag2s/epublib/zip/ZipFile.java

@ -352,7 +352,7 @@ public class ZipFile implements ZipConstants, Closeable {
public ZipEntry getEntry(String name) { public ZipEntry getEntry(String name) {
try { try {
HashMap<String, ZipEntry> entries = getEntries(); HashMap<String, ZipEntry> entries = getEntries();
ZipEntry entry = (ZipEntry) entries.get(name); ZipEntry entry = entries.get(name);
return entry != null ? (ZipEntry) entry.clone() : null; return entry != null ? (ZipEntry) entry.clone() : null;
} catch (IOException ioe) { } catch (IOException ioe) {
return null; return null;

Loading…
Cancel
Save