-
- All Implemented Interfaces:
-
org.readium.r2.streamer.parser.PublicationParser
public final class ReadiumWebPubParser implements PublicationParser
Parses any Readium Web Publication package or manifest, e.g. WebPub, Audiobook, DiViNa, LCPDF...
-
-
Constructor Summary
Constructors Constructor Description ReadiumWebPubParser(Context context, HttpClient httpClient, PdfDocumentFactory<?> pdfFactory, EpubPositionsService.ReflowableStrategy epubReflowablePositionsStrategy)
-
Method Summary
Modifier and Type Method Description Try<Publication.Builder, PublicationParser.ParseError>parse(Asset asset, WarningLogger warnings)Constructs a Publication.Builder to build a Publication from a publication asset. -
-
Constructor Detail
-
ReadiumWebPubParser
ReadiumWebPubParser(Context context, HttpClient httpClient, PdfDocumentFactory<?> pdfFactory, EpubPositionsService.ReflowableStrategy epubReflowablePositionsStrategy)
- Parameters:
epubReflowablePositionsStrategy- Strategy used to calculate the number of positions in a reflowable resource of a web publication conforming to the EPUB profile.
-
-
Method Detail
-
parse
Try<Publication.Builder, PublicationParser.ParseError> parse(Asset asset, WarningLogger warnings)
Constructs a Publication.Builder to build a Publication from a publication asset.
- Parameters:
asset- Publication asset.warnings- Used to report non-fatal parsing warnings, such as publication authoring mistakes.
-
-
-
-