NCXDocument

Reads and writes the NCX (Navigation Control file for XML) document defined by namespace http://www.daisy.org/z3986/2005/ncx/.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
const val NCX_ITEM_ID: String
Link copied to clipboard
const val PREFIX_DTB: String
Link copied to clipboard
const val PREFIX_NCX: String

Functions

Link copied to clipboard

Builds an NCX Resource containing the table of contents for book.

fun createNCXResource(identifiers: List<Identifier>, title: String, authors: List<Author>, tableOfContents: TableOfContents): Resource
Link copied to clipboard
fun read(book: Book, epubReader: EpubReader): Resource?
Link copied to clipboard
fun readTOCReference(navpointElement: Element, book: Book): TOCReference
Link copied to clipboard
fun write(writer: XmlWriter, book: Book)
fun write(writer: XmlWriter, identifiers: List<Identifier>, title: String, authors: List<Author>, tableOfContents: TableOfContents)