getSupportedSources() {
return supportedSources;
}
/**
* Returns an url that can help/guide the user to the file (or channel url) to extract the subscriptions.
* For example, in YouTube, the export subscriptions url is a good choice to return here.
*/
@Nullable
public abstract String getRelatedUrl();
/**
* Reads and parse a list of {@link SubscriptionItem} from the given channel url.
*
* @throws InvalidSourceException when the channelUrl doesn't exist or is invalid
*/
public List fromChannelUrl(String channelUrl) throws IOException, ExtractionException {
throw new UnsupportedOperationException("Service " + service.getServiceInfo().getName() + " doesn't support extracting from a channel url");
}
/**
* Reads and parse a list of {@link SubscriptionItem} from the given InputStream.
*
* @throws InvalidSourceException when the content read from the InputStream is invalid and can not be parsed
*/
@SuppressWarnings("RedundantThrows")
public List fromInputStream(InputStream contentInputStream) throws IOException, ExtractionException {
throw new UnsupportedOperationException("Service " + service.getServiceInfo().getName() + " doesn't support extracting from an InputStream");
}
}