All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.kennycason.struktural.data.InputStreamJsonLoader.kt Maven / Gradle / Ivy

There is a newer version: 1.0.3
Show newest version
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