public abstract class AbstractJsonProvider<T> extends Object implements JsonProvider<T>
JsonProvider implementations.| Constructor and Description |
|---|
AbstractJsonProvider() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other)
Indicates whether the specified
JsonProvider is "equal to" this one, with an
equivalence relation based on the actual provider class. |
T |
parse(InputStream inputStream)
Deserializes a JSON from a specified
InputStream. |
T |
parse(String string)
Deserializes a JSON string into a JSON object.
|
getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadd, arrayContains, entrySet, forEachElementInArray, get, get, indexOf, isEmpty, isJsonArray, isJsonObject, newJsonArray, newJsonArray, newJsonObject, newJsonObject, put, putIfAbsent, set, size, streampublic T parse(String string)
JsonProviderparse in interface JsonProvider<T>string - the source stringNullPointerException - if the specified string is nullJsonParseException - if the specified string is an invalid JSONpublic T parse(InputStream inputStream)
JsonProviderInputStream.parse in interface JsonProvider<T>inputStream - the source input streamJsonParseException - in case of invalid JSON or any other exception raised by the
actual provider during parsing of the input streampublic boolean equals(Object other)
JsonProvider is "equal to" this one, with an
equivalence relation based on the actual provider class.
So, two instances of the same JsonProvider subclass will always be considered
"equal", for the implementations shall maintain no particular state or dedicated
instance data.
Copyright © 2025. All rights reserved.