1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-05 02:39:23 +02:00

git-svn-id: https://only.mawhrin.net/repos/FBReaderJ/trunk@1557 6a642e6f-84f6-412e-ac94-c4a38d5a04b0

This commit is contained in:
Vasiliy Bout 2010-07-07 18:59:49 +00:00
parent a2d29880aa
commit 608406ab1c
7 changed files with 253 additions and 1 deletions

View file

@ -22,12 +22,14 @@ package org.geometerplus.fbreader.formats;
import org.geometerplus.fbreader.bookmodel.BookModel;
import org.geometerplus.fbreader.library.Book;
import org.geometerplus.zlibrary.core.filesystem.ZLFile;
import org.geometerplus.zlibrary.core.image.ZLImage;
public abstract class FormatPlugin {
public abstract boolean acceptsFile(ZLFile file);
public abstract boolean readMetaInfo(Book book);
public abstract boolean readModel(BookModel model);
public abstract ZLImage readCover(Book book);
/*
public static void detectEncodingAndLanguage(Book book, InputStream stream) throws IOException {
String language = book.getLanguage();