class JsonValueParserAdapter<T extends javax.json.JsonValue> extends Object implements javax.json.stream.JsonParser
| Modifier and Type | Class and Description |
|---|---|
private static class |
JsonValueParserAdapter.JsonNumberParserAdapter |
private static class |
JsonValueParserAdapter.JsonStringParserAdapter |
| Constructor and Description |
|---|
JsonValueParserAdapter(T jsonValue) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static javax.json.stream.JsonParser |
createFor(javax.json.JsonValue jsonValue,
Supplier<javax.json.stream.JsonParserFactory> parserFactoryProvider) |
private static javax.json.stream.JsonParser |
doCreate(javax.json.JsonValue jsonValue,
Supplier<javax.json.stream.JsonParserFactory> parserFactoryProvider) |
BigDecimal |
getBigDecimal() |
int |
getInt() |
javax.json.stream.JsonLocation |
getLocation() |
long |
getLong() |
String |
getString() |
T |
getValue() |
boolean |
hasNext() |
boolean |
isIntegralNumber() |
javax.json.stream.JsonParser.Event |
next() |
private final T extends javax.json.JsonValue jsonValue
JsonValueParserAdapter(T jsonValue)
public static javax.json.stream.JsonParser createFor(javax.json.JsonValue jsonValue,
Supplier<javax.json.stream.JsonParserFactory> parserFactoryProvider)
private static javax.json.stream.JsonParser doCreate(javax.json.JsonValue jsonValue,
Supplier<javax.json.stream.JsonParserFactory> parserFactoryProvider)
public boolean hasNext()
hasNext in interface javax.json.stream.JsonParserpublic javax.json.stream.JsonParser.Event next()
next in interface javax.json.stream.JsonParserpublic String getString()
getString in interface javax.json.stream.JsonParserpublic boolean isIntegralNumber()
isIntegralNumber in interface javax.json.stream.JsonParserpublic int getInt()
getInt in interface javax.json.stream.JsonParserpublic long getLong()
getLong in interface javax.json.stream.JsonParserpublic BigDecimal getBigDecimal()
getBigDecimal in interface javax.json.stream.JsonParserpublic javax.json.stream.JsonLocation getLocation()
getLocation in interface javax.json.stream.JsonParserpublic void close()
close in interface Closeableclose in interface AutoCloseableclose in interface javax.json.stream.JsonParserpublic T getValue()
getValue in interface javax.json.stream.JsonParserCopyright © 2014–2019 The Apache Software Foundation. All rights reserved.