Verified Owner
Top Description Constructors Methods
org.jabref.logic.importer.util

public final Class JsonReader

extends Object
Class Inheritance
Imports
java.io.IOException, .InputStream, java.nio.charset.StandardCharsets, org.jabref.logic.importer.ParseException, kong.unirest.core.json.JSONArray, kong.unirest.core.json.JSONException, kong.unirest.core.json.JSONObject

Converts an InputStream into a JSONObject.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static kong.unirest.core.json.JSONArray
public static kong.unirest.core.json.JSONObject

Returns:

A JSONObject. An empty JSON object is returned in the case an empty stream is passed.
toJsonObject
(InputStream inputStream)

Converts the given input stream into a JSONObject.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

JsonReaderback to summary
private JsonReader()

Method Detail

toJsonArrayback to summary
public static kong.unirest.core.json.JSONArray toJsonArray(InputStream stream) throws ParseException
toJsonObjectback to summary
public static kong.unirest.core.json.JSONObject toJsonObject(InputStream inputStream) throws ParseException

Converts the given input stream into a JSONObject.

Returns:kong.unirest.core.json.JSONObject

A JSONObject. An empty JSON object is returned in the case an empty stream is passed.