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
Constructors Constructor Description StreamInfoItemsCollector(int serviceId)
StreamInfoItemsCollector(int serviceId, java.util.Comparator<StreamInfoItem> comparator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
commit(StreamInfoItemExtractor extractor)
Try to add an extractor to the collectionStreamInfoItem
extract(StreamInfoItemExtractor extractor)
Try to extract the item from an extractor without adding it to the collection-
Methods inherited from class org.schabi.newpipe.extractor.InfoItemsCollector
addError, addItem, getErrors, getItems, getServiceId, reset
-
-
-
-
Constructor Detail
-
StreamInfoItemsCollector
public StreamInfoItemsCollector(int serviceId)
-
StreamInfoItemsCollector
public StreamInfoItemsCollector(int serviceId, java.util.Comparator<StreamInfoItem> comparator)
-
-
Method Detail
-
extract
public StreamInfoItem extract(StreamInfoItemExtractor extractor) throws ParsingException
Description copied from interface:Collector
Try 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(StreamInfoItemExtractor extractor)
Description copied from interface:Collector
Try to add an extractor to the collection- Specified by:
commit
in interfaceCollector<StreamInfoItem,StreamInfoItemExtractor>
- Overrides:
commit
in classInfoItemsCollector<StreamInfoItem,StreamInfoItemExtractor>
- Parameters:
extractor
- the extractor to add
-
-