Class CommentsInfoItemsCollector
java.lang.Object
org.schabi.newpipe.extractor.InfoItemsCollector<CommentsInfoItem,CommentsInfoItemExtractor>
org.schabi.newpipe.extractor.comments.CommentsInfoItemsCollector
- All Implemented Interfaces:
Collector<CommentsInfoItem,CommentsInfoItemExtractor>
public final class CommentsInfoItemsCollector
extends InfoItemsCollector<CommentsInfoItem,CommentsInfoItemExtractor>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcommit(CommentsInfoItemExtractor extractor) Try to add an extractor to the collectionextract(CommentsInfoItemExtractor extractor) Try to extract the item from an extractor without adding it to the collectionMethods inherited from class org.schabi.newpipe.extractor.InfoItemsCollector
addError, addItem, getErrors, getItems, getServiceId, reset
-
Constructor Details
-
CommentsInfoItemsCollector
public CommentsInfoItemsCollector(int serviceId)
-
-
Method Details
-
extract
Description copied from interface:CollectorTry to extract the item from an extractor without adding it to the collection- Parameters:
extractor- the extractor to use- Returns:
- the item
- Throws:
ParsingException- thrown if there is an error extracting the required fields of the item.
-
commit
Description copied from interface:CollectorTry to add an extractor to the collection- Specified by:
commitin interfaceCollector<CommentsInfoItem,CommentsInfoItemExtractor> - Overrides:
commitin classInfoItemsCollector<CommentsInfoItem,CommentsInfoItemExtractor> - Parameters:
extractor- the extractor to add
-
getCommentsInfoItemList
-