Package 

Class PerResourcePositionsService

  • All Implemented Interfaces:
    org.readium.r2.shared.publication.Publication.Service , org.readium.r2.shared.publication.services.PositionsService , org.readium.r2.shared.util.Closeable

    
    public final class PerResourcePositionsService
     implements PositionsService
                        

    Simple PositionsService for a Publication which generates one position per readingOrder resource.

    • Method Summary

      Modifier and Type Method Description
      List<List<Locator>> positionsByReadingOrder() Returns the list of all the positions in the publication, grouped by the resource reading order index.
      • Methods inherited from class org.readium.r2.shared.publication.services.PerResourcePositionsService

        positions
      • Methods inherited from class org.readium.r2.shared.publication.services.PositionsService

        close
      • Methods inherited from class java.lang.Object

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

      • PerResourcePositionsService

        PerResourcePositionsService(List<Link> readingOrder, MediaType fallbackMediaType)
        Parameters:
        fallbackMediaType - Media type that will be used as a fallback if the Link doesn't specify any.