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

FormatPlugin refactoring: string id for all plugins

This commit is contained in:
Nikolay Pultsin 2012-02-23 17:14:34 +01:00
parent 4e58f8e1fe
commit da41e4aa33
6 changed files with 22 additions and 17 deletions

View file

@ -26,7 +26,16 @@ import org.geometerplus.fbreader.bookmodel.BookModel;
import org.geometerplus.fbreader.library.Book;
public abstract class FormatPlugin {
public abstract String supportedFileType();
private final String myFileType;
protected FormatPlugin(String fileType) {
myFileType = fileType;
}
public final String supportedFileType() {
return myFileType;
}
public abstract boolean readMetaInfo(Book book);
public abstract boolean readLanguageAndEncoding(Book book);
public abstract boolean readModel(BookModel model);