com.kennycason.struktural.data.InputStreamJsonLoader.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of struktural Show documentation
Show all versions of struktural Show documentation
Struktural - API Testing Made Easy - Kotlin
package com.kennycason.struktural.data
import com.fasterxml.jackson.databind.JsonNode
import com.fasterxml.jackson.databind.ObjectMapper
import java.io.File
import java.io.InputStream
import java.nio.file.Path
/**
* Created by kenny on 5/25/17.
*/
class InputStreamJsonLoader(private val inputStream: InputStream) : JsonLoader {
private val objectMapper = ObjectMapper()
override fun load(): JsonNode {
return objectMapper.readTree(inputStream)!!
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy