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:
parent
4e58f8e1fe
commit
da41e4aa33
6 changed files with 22 additions and 17 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue