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.JsonParser
public javax.json.stream.JsonParser.Event next()
next
in interface javax.json.stream.JsonParser
public String getString()
getString
in interface javax.json.stream.JsonParser
public boolean isIntegralNumber()
isIntegralNumber
in interface javax.json.stream.JsonParser
public int getInt()
getInt
in interface javax.json.stream.JsonParser
public long getLong()
getLong
in interface javax.json.stream.JsonParser
public BigDecimal getBigDecimal()
getBigDecimal
in interface javax.json.stream.JsonParser
public javax.json.stream.JsonLocation getLocation()
getLocation
in interface javax.json.stream.JsonParser
public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in interface javax.json.stream.JsonParser
public T getValue()
getValue
in interface javax.json.stream.JsonParser
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.