mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-05 02:39:23 +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
|
@ -23,6 +23,7 @@ import org.geometerplus.zlibrary.core.filesystem.ZLFile;
|
|||
import org.geometerplus.zlibrary.core.image.ZLImage;
|
||||
|
||||
import org.geometerplus.fbreader.bookmodel.BookModel;
|
||||
import org.geometerplus.fbreader.bookmodel.BookReadingException;
|
||||
import org.geometerplus.fbreader.library.Book;
|
||||
|
||||
public abstract class FormatPlugin {
|
||||
|
@ -36,9 +37,9 @@ public abstract class FormatPlugin {
|
|||
return myFileType;
|
||||
}
|
||||
|
||||
public abstract boolean readMetaInfo(Book book);
|
||||
public abstract void readMetaInfo(Book book) throws BookReadingException;
|
||||
public abstract void readModel(BookModel model) throws BookReadingException;
|
||||
public abstract boolean readLanguageAndEncoding(Book book);
|
||||
public abstract boolean readModel(BookModel model);
|
||||
public abstract ZLImage readCover(ZLFile file);
|
||||
public abstract String readAnnotation(ZLFile file);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue