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:
parent
480d3d1398
commit
2f75bb15d6
12 changed files with 76 additions and 19 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue