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

encryption type is visible from java code

This commit is contained in:
Nikolay Pultsin 2014-02-13 19:18:58 +00:00
parent 480d3d1398
commit 2f75bb15d6
12 changed files with 76 additions and 19 deletions

View file

@ -28,6 +28,12 @@ import org.geometerplus.fbreader.bookmodel.BookModel;
import org.geometerplus.fbreader.bookmodel.BookReadingException;
public abstract class FormatPlugin {
public interface EncryptionType {
String NONE = "none";
String UNKNOWN = "unknown";
String MARLIN = "marlin";
}
private final String myFileType;
protected FormatPlugin(String fileType) {
@ -42,6 +48,7 @@ public abstract class FormatPlugin {
return file;
}
public abstract void readMetaInfo(Book book) throws BookReadingException;
public abstract String readEncryptionType(Book book);
public abstract void readUids(Book book) throws BookReadingException;
public abstract void readModel(BookModel model) throws BookReadingException;
public abstract void detectLanguageAndEncoding(Book book) throws BookReadingException;