Class OpfCreatorDefault

  • All Implemented Interfaces:
    OpfCreator

    public class OpfCreatorDefault
    extends Object
    implements OpfCreator
    Default implementation of the OpfCreator. This follows EPUB3 standards to create the OPF file content.
    Author:
    OpenCollab
    • Constructor Detail

      • OpfCreatorDefault

        public OpfCreatorDefault()
    • Method Detail

      • createOpfString

        public String createOpfString​(EpubBook book)
        Creates the OPF file text from the EpubBook data
        Specified by:
        createOpfString in interface OpfCreator
        Parameters:
        book - the ePub book to generate the OPF for
        Returns:
        the generated OPF markup
      • getOpfXML

        public String getOpfXML()
        The base XML used for the OPF file.
        Returns:
        the OPF XML text
      • setOpfXML

        public void setOpfXML​(String opfXML)
        The base XML used for the OPF file. This is optional as there is a EPUB3 standard default but it can be overridden.
        Parameters:
        opfXML - the OPF XML to set