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 Constructor Description CommentsInfoItemsCollector(int serviceId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcommit(CommentsInfoItemExtractor extractor)Try to add an extractor to the collectionCommentsInfoItemextract(CommentsInfoItemExtractor extractor)Try to extract the item from an extractor without adding it to the collectionjava.util.List<CommentsInfoItem>getCommentsInfoItemList()-
Methods inherited from class org.schabi.newpipe.extractor.InfoItemsCollector
addError, addItem, getErrors, getItems, getServiceId, reset
-
-
-
-
Method Detail
-
extract
public CommentsInfoItem extract(CommentsInfoItemExtractor extractor) throws ParsingException
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
public void commit(CommentsInfoItemExtractor extractor)
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
public java.util.List<CommentsInfoItem> getCommentsInfoItemList()
-
-