Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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)

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);
```