-
- All Implemented Interfaces:
-
org.readium.r2.streamer.PublicationParser,org.readium.r2.streamer.parser.PublicationParser
public final class EpubParser implements PublicationParser, PublicationParser
Parses a Publication from an EPUB publication.
-
-
Constructor Summary
Constructors Constructor Description EpubParser(EpubPositionsService.ReflowableStrategy reflowablePositionsStrategy)
-
Method Summary
Modifier and Type Method Description Publication.Builderparse(PublicationAsset asset, Fetcher fetcher, WarningLogger warnings)Constructs a Publication.Builder to build a Publication from a publication asset. PubBoxparse(String fileAtPath, String fallbackTitle)final Publication.Builder_parse(PublicationAsset asset, Fetcher fetcher, String fallbackTitle)final Pair<Container, Publication>fillEncryption(Container container, Publication publication, DRM drm)-
-
Constructor Detail
-
EpubParser
EpubParser(EpubPositionsService.ReflowableStrategy reflowablePositionsStrategy)
- Parameters:
reflowablePositionsStrategy- Strategy used to calculate the number of positions in a reflowable resource.
-
-
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.
-
_parse
final Publication.Builder _parse(PublicationAsset asset, Fetcher fetcher, String fallbackTitle)
-
fillEncryption
final Pair<Container, Publication> fillEncryption(Container container, Publication publication, DRM drm)
-
-
-
-