Add the JitPack repository in your root build.gradle
at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Add the following line to the dependencies
section of your build.gradle
file:
implementation 'com.github.ygpedroso:feedParser:0.2'
Add the JitPack repository in your build
file:
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add the dependency in your build
file:
<dependency>
<groupId>com.github.ygpedroso</groupId>
<artifactId>feedParser</artifactId>
<version>0.2</version>
</dependency>
Parser parser = new Parser(rssSource);
Rss rss = parser.getRss();
var parser = Parser(rssSource)
var rss = parser.getRss()
The rssSource
variable that the Parser
class receives as a constructor parameter, can be of any of this class types:
String
java.io.File
java.io.Reader
java.io.InputStream
org.simpleframework.xml.stream.InputNode
FeedParser is MIT-licensed.