T - The parsed type.public static final class JsonParser.JsonParserContext<T> extends Object
JsonObject, JsonArray or "any" type from which you can
parse a String or a Reader.| Modifier and Type | Method and Description |
|---|---|
T |
from(InputStream stm)
Parses the current JSON type from a
InputStream. |
T |
from(Reader r)
Parses the current` JSON type from a
Reader. |
T |
from(String s)
Parses the current JSON type from a
String. |
T |
from(URL url)
Parses the current JSON type from a
URL. |
JsonParser.JsonParserContext<T> |
withLazyNumbers()
Parses numbers lazily, allowing us to defer some of the cost of
number construction until later.
|
public JsonParser.JsonParserContext<T> withLazyNumbers()
public T from(String s) throws JsonParserException
String.JsonParserExceptionpublic T from(Reader r) throws JsonParserException
Reader.JsonParserExceptionpublic T from(URL url) throws JsonParserException
URL.JsonParserExceptionpublic T from(InputStream stm) throws JsonParserException
InputStream. Detects the encoding from the input stream.JsonParserExceptionCopyright © 2020. All rights reserved.