Skip to content

Instantly share code, notes, and snippets.

@kgilmer
Created August 22, 2018 00:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kgilmer/d2a6807cf4905efc6cb3f100d48c3382 to your computer and use it in GitHub Desktop.
Save kgilmer/d2a6807cf4905efc6cb3f100d48c3382 to your computer and use it in GitHub Desktop.
uamp read network Kotlin
val catalogConn = URL(catalogUri.toString())
val reader = BufferedReader(InputStreamReader(catalogConn.openStream()))
val musicCat = gson.fromJson<JsonCatalog>(reader, JsonCatalog::class.java)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment