Feed Archive Stream API

Implements a stream API for atom feeds

License

License

GroupId

GroupId

com.github.attiand
ArtifactId

ArtifactId

feed-archive-stream
Last Version

Last Version

1.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

Feed Archive Stream API
Implements a stream API for atom feeds
Project URL

Project URL

https://github.com/attiand/feed-archive-stream
Source Code Management

Source Code Management

https://github.com/attiand/feed-archive-stream

Download feed-archive-stream

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.attiand/feed-archive-stream/ -->
<dependency>
    <groupId>com.github.attiand</groupId>
    <artifactId>feed-archive-stream</artifactId>
    <version>1.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.attiand/feed-archive-stream/
implementation 'com.github.attiand:feed-archive-stream:1.0.1'
// https://jarcasting.com/artifacts/com.github.attiand/feed-archive-stream/
implementation ("com.github.attiand:feed-archive-stream:1.0.1")
'com.github.attiand:feed-archive-stream:jar:1.0.1'
<dependency org="com.github.attiand" name="feed-archive-stream" rev="1.0.1">
  <artifact name="feed-archive-stream" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.attiand', module='feed-archive-stream', version='1.0.1')
)
libraryDependencies += "com.github.attiand" % "feed-archive-stream" % "1.0.1"
[com.github.attiand/feed-archive-stream "1.0.1"]

Dependencies

compile (2)

Group / Artifact Type Version
com.rometools : rome jar 1.7.0
org.apache.httpcomponents : httpclient jar 4.5.2

test (2)

Group / Artifact Type Version
org.junit.jupiter : junit-jupiter-engine jar 5.7.0
org.assertj : assertj-core jar 3.17.2

Project Modules

There are no modules declared in this project.

feed-archive-stream

Stream API for Atom feed archives (RFC 5005). Follows next-archive and prev-archive links when iterating Atom entries.

Maven

<dependency>
    <groupId>com.github.attiand</groupId>
    <artifactId>feed-archive-stream</artifactId>
    <version>${feed-archive-stream.version}</version>
</dependency>

Examples

Read forward

Feed feed = FeedReader.fromUri("src/test/resources/simple.xml");

feed.stream().map(Entry::getUri).flatMap(Optional::stream).forEach(System.out::println);

Read backward

Feed feed = FeedReader.fromUri("src/test/resources/simple.xml");

feed.reverseStream().map(Entry::getUri).flatMap(Optional::stream).forEach(System.out::println);

Versions

Version
1.0.1
1.0