fb2 library
FictionBook 2 parsing entry points.
Classes
- ArchiveEntry
- A physical entry of a book's container archive.
- BinaryFile
- Represents a binary book file.
- Book
- A fully parsed book, independent of its source format.
- BookCover
- A book cover: raw bytes plus the detected image type.
- BookFile
- Abstract representation of a file inside a book container.
- BookMetadata
- Format-agnostic book metadata extracted from any supported book file.
- BookStatistics
- Basic reading statistics computed from book content.
- DocumentBook
- A document-backed book produced by text and office-format adapters.
- Fb2Book
- A parsed FictionBook 2.0 book.
- Files
- The files contained in a parsed book.
- The navigation (table of contents) of a book.
- Represents a navigation point (table of contents entry) in a book.
- ReadingOrderItem
- One entry of a book's reading order.
- TextFile
- Represents a text book file.
Enums
- BookFormat
- The book formats supported by unseal.
Functions
-
parseFb2Archive(
ArchiveFile entry) → Fb2Book -
Parses an FB2 book from a zip archive
entry. -
parseFb2Book(
Uint8List bytes) → Fb2Book -
Parses an FB2 book from raw
bytes(plain XML or zipped FB2). -
readFb2Metadata(
Uint8List bytes) → BookMetadata -
Reads only the metadata of an FB2 book from
bytes.
Exceptions / Errors
- Fb2Exception
- Error thrown while reading or parsing an FB2 book.