Class YoutubeCommentsLinkHandlerFactory
- java.lang.Object
-
- org.schabi.newpipe.extractor.linkhandler.LinkHandlerFactory
-
- org.schabi.newpipe.extractor.linkhandler.ListLinkHandlerFactory
-
- org.schabi.newpipe.extractor.services.youtube.linkHandler.YoutubeCommentsLinkHandlerFactory
-
public final class YoutubeCommentsLinkHandlerFactory extends ListLinkHandlerFactory
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getId(java.lang.String urlString)
static YoutubeCommentsLinkHandlerFactory
getInstance()
java.lang.String
getUrl(java.lang.String id)
For making ListLinkHandlerFactory compatible with LinkHandlerFactory we need to override this, however it should not be overridden by the actual implementation.java.lang.String
getUrl(java.lang.String id, java.util.List<java.lang.String> contentFilter, java.lang.String sortFilter)
boolean
onAcceptUrl(java.lang.String url)
-
Methods inherited from class org.schabi.newpipe.extractor.linkhandler.ListLinkHandlerFactory
fromId, fromId, fromQuery, fromQuery, fromUrl, fromUrl, getAvailableContentFilter, getAvailableSortFilter, getUrl, getUrl
-
Methods inherited from class org.schabi.newpipe.extractor.linkhandler.LinkHandlerFactory
acceptUrl
-
-
-
-
Method Detail
-
getInstance
public static YoutubeCommentsLinkHandlerFactory getInstance()
-
getUrl
public java.lang.String getUrl(java.lang.String id) throws ParsingException, java.lang.UnsupportedOperationException
Description copied from class:ListLinkHandlerFactory
For making ListLinkHandlerFactory compatible with LinkHandlerFactory we need to override this, however it should not be overridden by the actual implementation.- Overrides:
getUrl
in classListLinkHandlerFactory
- Returns:
- the url corresponding to id without any filters applied
- Throws:
ParsingException
java.lang.UnsupportedOperationException
-
getId
public java.lang.String getId(java.lang.String urlString) throws ParsingException, java.lang.UnsupportedOperationException
- Specified by:
getId
in classLinkHandlerFactory
- Throws:
ParsingException
java.lang.UnsupportedOperationException
-
onAcceptUrl
public boolean onAcceptUrl(java.lang.String url) throws FoundAdException
- Specified by:
onAcceptUrl
in classLinkHandlerFactory
- Throws:
FoundAdException
-
getUrl
public java.lang.String getUrl(java.lang.String id, java.util.List<java.lang.String> contentFilter, java.lang.String sortFilter) throws ParsingException, java.lang.UnsupportedOperationException
- Specified by:
getUrl
in classListLinkHandlerFactory
- Throws:
ParsingException
java.lang.UnsupportedOperationException
-
-