Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/attiand/feed-archive-stream
Stream API for Atom feed archives (RFC 5005)
https://github.com/attiand/feed-archive-stream
atom feed
Last synced: about 22 hours ago
JSON representation
Stream API for Atom feed archives (RFC 5005)
- Host: GitHub
- URL: https://github.com/attiand/feed-archive-stream
- Owner: attiand
- Created: 2017-03-30T17:09:13.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-06-10T06:22:46.000Z (over 3 years ago)
- Last Synced: 2024-04-24T12:21:59.202Z (7 months ago)
- Topics: atom, feed
- Language: Java
- Homepage:
- Size: 129 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# feed-archive-stream
Stream API for Atom feed archives (RFC 5005). Follows `next-archive` and `prev-archive` links when iterating Atom entries.
## Maven
```xml
com.github.attiand
feed-archive-stream
${feed-archive-stream.version}```
## Examples
### Read forward
```java
Feed feed = FeedReader.fromUri("src/test/resources/simple.xml");feed.stream().map(Entry::getUri).flatMap(Optional::stream).forEach(System.out::println);
```### Read backward
```java
Feed feed = FeedReader.fromUri("src/test/resources/simple.xml");feed.reverseStream().map(Entry::getUri).flatMap(Optional::stream).forEach(System.out::println);
```