Creates a new SelectorFactory instance.
The list of parsers that this factory should use to parse serialized selectors.
Parses a fragment selector string into an ISelector instance. The types of selectors that can be parsed depends on which selector parser implementations this factory was created with.
If the fragment selector format is unknown, an UnknownFragmentSelector instance is returned containing the fragment string.
Parses a serialized ISelectorData object into an ISelector instance.
Get all FragmentSelectorParsers used in this SelectorFactory.
Get all SelectorDataParsers used in this SelectorFactory.
Generated using TypeDoc
Used for parsing different types of serialized selector data into Selector instances.
The SelectorFactory must be configured with SelectorDataParsers and FragmentSelectorParser in order to support different selector formats.
For example, to create a SelectorFactory that can parse EPUB CFI selectors, do the following
If you have a serialized Locator you can use a LocatorFactory to parse it. You can use ReaderPublication.getLocatorFactory() to get a pre-configured LocatorFactory and SelectorFactory for that publication type.