-
- All Implemented Interfaces:
-
org.readium.r2.streamer.parser.PublicationParser
public final class AudioParser implements PublicationParser
Parses an audiobook Publication from an unstructured archive format containing audio files, such as ZAB (Zipped Audio Book) or a simple ZIP.
It can also work for a standalone audio file.
-
-
Constructor Summary
Constructors Constructor Description AudioParser(AssetRetriever assetSniffer)
-
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. -
-
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.
-
-
-
-