Package 

Class ImageParser

  • All Implemented Interfaces:
    org.readium.r2.streamer.parser.PublicationParser

    
    public final class ImageParser
     implements PublicationParser
                        

    Parses an image–based Publication from an unstructured archive format containing bitmap files, such as CBZ or a simple ZIP.

    It can also work for a standalone bitmap file.

    • Constructor Summary

      Constructors 
      Constructor Description
      ImageParser(AssetRetriever assetRetriever)
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ImageParser

        ImageParser(AssetRetriever assetRetriever)
    • 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.