-
- 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 EpubPositionsService implements PositionsServicePositions Service for an EPUB from its readingOrder and fetcher.
The presentation is used to apply different calculation strategy if the resource has a reflowable or fixed layout.
https://github.com/readium/architecture/blob/master/models/locators/best-practices/format.md#epub https://github.com/readium/architecture/issues/101
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classEpubPositionsService.Companionpublic classEpubPositionsService.ReflowableStrategyStrategy used to calculate the number of positions in a reflowable resource.
Note that a fixed-layout resource always has a single position.
-
Constructor Summary
Constructors Constructor Description EpubPositionsService(List<Link> readingOrder, Presentation presentation, Fetcher fetcher, EpubPositionsService.ReflowableStrategy reflowableStrategy)
-
Method Summary
Modifier and Type Method Description List<List<Locator>>positionsByReadingOrder()-
Methods inherited from class org.readium.r2.shared.publication.services.PositionsService
get, getLinks, positions -
Methods inherited from class org.readium.r2.shared.publication.Publication.Service
close -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
EpubPositionsService
EpubPositionsService(List<Link> readingOrder, Presentation presentation, Fetcher fetcher, EpubPositionsService.ReflowableStrategy reflowableStrategy)
-
-
Method Detail
-
positionsByReadingOrder
List<List<Locator>> positionsByReadingOrder()
-
-
-
-