-
- All Implemented Interfaces:
-
org.readium.r2.streamer.PublicationParser,org.readium.r2.streamer.parser.PublicationParser
public final class ReadiumWebPubParser implements PublicationParser, PublicationParser
Parses any Readium Web Publication package or manifest, e.g. WebPub, Audiobook, DiViNa, LCPDF...
-
-
Constructor Summary
Constructors Constructor Description ReadiumWebPubParser(Context context, PdfDocumentFactory<?> pdfFactory, HttpClient httpClient)
-
Method Summary
-
-
Constructor Detail
-
ReadiumWebPubParser
ReadiumWebPubParser(Context context, PdfDocumentFactory<?> pdfFactory, HttpClient httpClient)
-
-
Method Detail
-
parse
Publication.Builder parse(PublicationAsset asset, Fetcher fetcher, WarningLogger warnings)
Constructs a Publication.Builder to build a Publication from a publication asset.
- Parameters:
asset- Digital medium (e.g.fetcher- Initial leaf fetcher which should be used to read the publication's resources.warnings- Used to report non-fatal parsing warnings, such as publication authoring mistakes.
-
-
-
-