Class TocCreatorDefault

  • All Implemented Interfaces:
    TocCreator

    public class TocCreatorDefault
    extends Object
    implements TocCreator
    Default implementation of the TocCreator. This follows EPUB3 standards to create the Navigation Document file content.
    Author:
    OpenCollab
    • Constructor Detail

      • TocCreatorDefault

        public TocCreatorDefault()
    • Method Detail

      • createTocFromBook

        public Content createTocFromBook​(EpubBook book)
        Creates the EPUB TOC navigation document Content object
        Specified by:
        createTocFromBook in interface TocCreator
        Parameters:
        book - the EpubBook to create the TOC for
        Returns:
        the TOC Content object
      • getHref

        public String getHref()
        Returns:
        the HREF
      • setHref

        public void setHref​(String href)
        Parameters:
        href - the HREF to set
      • getTocHtml

        public String getTocHtml()
        Returns:
        the tocHtml
      • setTocHtml

        public void setTocHtml​(String tocHtml)
        Parameters:
        tocHtml - the tocHtml to set