public final class HtmlEntityList extends com.univocity.parsers.remote.RemoteEntityList<HtmlEntitySettings>
Manages a list of HTML entities and their HtmlEntitySettings. Common configuration options shared with HtmlEntitySettings and HtmlParserSettings are inherited from the HtmlParserSettings, but can be overridden in the configuration of each individual entity.
HtmlParser,
HtmlParserSettings,
HtmlParserListener| Constructor and Description |
|---|
HtmlEntityList()
Creates a new, empty
HtmlEntityList, with a default global HtmlParserSettings configuration, which is used to provide defaults to all entity-specific settings in this list. |
HtmlEntityList(HtmlParserSettings parserSettings)
Creates a new, empty
HtmlEntityList, applying the global HtmlParserSettings configuration, which is used to provide defaults to all entity-specific settings in this list. |
| Modifier and Type | Method and Description |
|---|---|
HtmlPaginator |
getPaginator()
|
HtmlParserSettings |
getParserSettings() |
protected HtmlEntitySettings |
newEntity(String entityName,
HtmlEntitySettings parentEntity)
Creates a new
HtmlEntitySettings for an entity with the supplied name and returns it. |
protected HtmlEntityList |
newInstance() |
addEntitySettings, configureEntity, getDownloadThreadPoolconfigureEntity, getEntities, getEntity, getEntityNames, iterator, removeEntity, removeEntityclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic HtmlEntityList()
Creates a new, empty HtmlEntityList, with a default global HtmlParserSettings configuration, which is used to provide defaults to all entity-specific settings in this list.
public HtmlEntityList(HtmlParserSettings parserSettings)
Creates a new, empty HtmlEntityList, applying the global HtmlParserSettings configuration, which is used to provide defaults to all entity-specific settings in this list.
parserSettings - the global parser settings whose configuration may provide defaults for all entities defined in this list.protected final HtmlEntitySettings newEntity(String entityName, HtmlEntitySettings parentEntity)
Creates a new HtmlEntitySettings for an entity with the supplied name and returns it. Used by EntityList.configureEntity(String).
newEntity in class com.univocity.parsers.common.EntityList<HtmlEntitySettings>entityName - the name that will be used to identify the entitypublic HtmlParserSettings getParserSettings()
getParserSettings in class com.univocity.parsers.remote.RemoteEntityList<HtmlEntitySettings>protected HtmlEntityList newInstance()
newInstance in class com.univocity.parsers.remote.RemoteEntityList<HtmlEntitySettings>public final HtmlPaginator getPaginator()
Returns the HtmlPaginator associated with the HtmlParserSettings of this HtmlEntityList
HtmlPaginator stored the HtmlParserSettings of this HtmlEntityListCopyright © 2018 uniVocity Software Pty Ltd. All rights reserved.