Created
January 10, 2019 22:43
-
-
Save prof18/2ab1b2dfbc6e612d37a68813643a566a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class XMLFetcher(private val url: String) : Callable<String> { | |
@Throws(Exception::class) | |
override fun call(): String { | |
return CoreXMLFetcher.fetchXML(url) | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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