Created
March 5, 2017 16:16
-
-
Save matiangul/426fbbb40b44c937dd0796208bf269e9 to your computer and use it in GitHub Desktop.
Read xml content using java streams in kotlin
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
val fileStream = Thread.currentThread().contextClassLoader.getResourceAsStream("RCS.zip") | |
val zipStream = ZipInputStream(fileStream).apply { nextEntry } | |
val xmlReader = XMLInputFactory.newInstance().createXMLStreamReader(zipStream) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment