Add method for adding an RSS feed from an input stream.

This commit is contained in:
akwizgran
2023-01-24 13:57:44 +00:00
parent 8f7bb9d26b
commit 28a747f7f3
5 changed files with 103 additions and 12 deletions

View File

@@ -6,6 +6,7 @@ import org.briarproject.bramble.api.sync.ClientId;
import org.briarproject.nullsafety.NotNullByDefault;
import java.io.IOException;
import java.io.InputStream;
import java.util.List;
@NotNullByDefault
@@ -22,10 +23,17 @@ public interface FeedManager {
int MAJOR_VERSION = 0;
/**
* Adds an RSS feed as a new dedicated blog.
* Adds an RSS feed as a new dedicated blog, or updates the existing blog
* if a blog for the feed already exists.
*/
Feed addFeed(String url) throws DbException, IOException;
/**
* Adds an RSS feed as a new dedicated blog, or updates the existing blog
* if a blog for the feed already exists.
*/
Feed addFeed(InputStream in) throws DbException, IOException;
/**
* Removes an RSS feed.
*/