mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-04 10:19:33 +02:00
BookReadingException: handle reading error more accurately
This commit is contained in:
parent
2976b4c8fa
commit
be37623fcf
33 changed files with 239 additions and 134 deletions
|
@ -19,6 +19,8 @@
|
|||
|
||||
package org.geometerplus.fbreader.formats.fb2;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import org.geometerplus.zlibrary.core.filesystem.ZLFile;
|
||||
import org.geometerplus.zlibrary.core.xml.*;
|
||||
|
||||
|
@ -92,7 +94,12 @@ public class FB2AnnotationReader extends ZLXMLReaderAdapter {
|
|||
}
|
||||
}
|
||||
|
||||
public boolean readDocument(ZLFile file) {
|
||||
return ZLXMLProcessor.read(this, file, 512);
|
||||
private boolean readDocument(ZLFile file) {
|
||||
try {
|
||||
ZLXMLProcessor.read(this, file, 512);
|
||||
return true;
|
||||
} catch (IOException e) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue