Skip to content

Instantly share code, notes, and snippets.

@prof18
Created January 10, 2019 22:43
Show Gist options
  • Save prof18/2ab1b2dfbc6e612d37a68813643a566a to your computer and use it in GitHub Desktop.
Save prof18/2ab1b2dfbc6e612d37a68813643a566a to your computer and use it in GitHub Desktop.
class XMLFetcher(private val url: String) : Callable<String> {
@Throws(Exception::class)
override fun call(): String {
return CoreXMLFetcher.fetchXML(url)
}
}
class XMLParser(var xml: String) : Callable<MutableList<Article>> {
@Throws(Exception::class)
override fun call(): MutableList<Article> {
return CoreXMLParser.parseXML(xml)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment