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

synchronization with native branch

This commit is contained in:
Nikolay Pultsin 2012-02-23 15:57:46 +01:00
parent 32215d6f85
commit 2032f9628b
2 changed files with 10 additions and 6 deletions

View file

@ -24,14 +24,8 @@ import org.geometerplus.zlibrary.core.image.ZLImage;
import org.geometerplus.fbreader.bookmodel.BookModel;
import org.geometerplus.fbreader.library.Book;
import org.geometerplus.fbreader.filetype.*;
public abstract class FormatPlugin {
public final boolean acceptsFile(ZLFile file) {
final FileType fileType = FileTypeCollection.Instance.typeById(supportedFileType());
return fileType != null && fileType.acceptsFile(file);
}
public abstract String supportedFileType();
public abstract boolean readMetaInfo(Book book);
public abstract boolean readLanguageAndEncoding(Book book);