parent
040cc1a9cd
commit
a327d6d53a
@ -0,0 +1,21 @@ |
||||
package io.legado.app.model.localBook |
||||
|
||||
import io.legado.app.data.entities.Book |
||||
import io.legado.app.data.entities.BookChapter |
||||
import java.io.InputStream |
||||
|
||||
/** |
||||
*companion object interface |
||||
*see EpubFile.kt |
||||
*/ |
||||
interface BaseLocalBookParse { |
||||
|
||||
fun upBookInfo(book: Book) |
||||
|
||||
fun getChapterList(book: Book): ArrayList<BookChapter> |
||||
|
||||
fun getContent(book: Book, chapter: BookChapter): String? |
||||
|
||||
fun getImage(book: Book, href: String): InputStream? |
||||
|
||||
} |
@ -0,0 +1,7 @@ |
||||
# 本地书籍解析 |
||||
|
||||
* BaseLocalBookParse.kt 本地书籍解析接口 |
||||
* LocalBook.kt 总入口 |
||||
* TextFile.kt 解析txt |
||||
* EpubFile.kt 解析epub |
||||
* UmdFile.kt 解析umd |
Loading…
Reference in new issue