Class StreamInfoItemsCollector
java.lang.Object
org.schabi.newpipe.extractor.InfoItemsCollector<StreamInfoItem,StreamInfoItemExtractor>
org.schabi.newpipe.extractor.stream.StreamInfoItemsCollector
- All Implemented Interfaces:
Collector<StreamInfoItem,StreamInfoItemExtractor>
public class StreamInfoItemsCollector
extends InfoItemsCollector<StreamInfoItem,StreamInfoItemExtractor>
-
Constructor Summary
ConstructorsConstructorDescriptionStreamInfoItemsCollector(int serviceId) StreamInfoItemsCollector(int serviceId, Comparator<StreamInfoItem> comparator) -
Method Summary
Modifier and TypeMethodDescriptionvoidcommit(StreamInfoItemExtractor extractor) Try to add an extractor to the collectionextract(StreamInfoItemExtractor 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
-
StreamInfoItemsCollector
public StreamInfoItemsCollector(int serviceId) -
StreamInfoItemsCollector
-
-
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<StreamInfoItem,StreamInfoItemExtractor> - Overrides:
commitin classInfoItemsCollector<StreamInfoItem,StreamInfoItemExtractor> - Parameters:
extractor- the extractor to add
-