Package org.apache.johnzon.jsonb
Class JsonValueParserAdapter<T extends jakarta.json.JsonValue>
- java.lang.Object
-
- org.apache.johnzon.jsonb.JsonValueParserAdapter<T>
-
- All Implemented Interfaces:
jakarta.json.stream.JsonParser
,Closeable
,AutoCloseable
- Direct Known Subclasses:
JsonValueParserAdapter.JsonNumberParserAdapter
,JsonValueParserAdapter.JsonStringParserAdapter
class JsonValueParserAdapter<T extends jakarta.json.JsonValue> extends Object implements jakarta.json.stream.JsonParser
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
JsonValueParserAdapter.JsonNumberParserAdapter
private static class
JsonValueParserAdapter.JsonStringParserAdapter
-
Constructor Summary
Constructors Constructor Description JsonValueParserAdapter(T jsonValue)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
static jakarta.json.stream.JsonParser
createFor(jakarta.json.JsonValue jsonValue, Supplier<jakarta.json.stream.JsonParserFactory> parserFactoryProvider)
private static jakarta.json.stream.JsonParser
doCreate(jakarta.json.JsonValue jsonValue, Supplier<jakarta.json.stream.JsonParserFactory> parserFactoryProvider)
BigDecimal
getBigDecimal()
int
getInt()
jakarta.json.stream.JsonLocation
getLocation()
long
getLong()
String
getString()
T
getValue()
boolean
hasNext()
boolean
isIntegralNumber()
jakarta.json.stream.JsonParser.Event
next()
-
-
-
Field Detail
-
jsonValue
private final T extends jakarta.json.JsonValue jsonValue
-
-
Constructor Detail
-
JsonValueParserAdapter
JsonValueParserAdapter(T jsonValue)
-
-
Method Detail
-
createFor
public static jakarta.json.stream.JsonParser createFor(jakarta.json.JsonValue jsonValue, Supplier<jakarta.json.stream.JsonParserFactory> parserFactoryProvider)
-
doCreate
private static jakarta.json.stream.JsonParser doCreate(jakarta.json.JsonValue jsonValue, Supplier<jakarta.json.stream.JsonParserFactory> parserFactoryProvider)
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfacejakarta.json.stream.JsonParser
-
next
public jakarta.json.stream.JsonParser.Event next()
- Specified by:
next
in interfacejakarta.json.stream.JsonParser
-
getString
public String getString()
- Specified by:
getString
in interfacejakarta.json.stream.JsonParser
-
isIntegralNumber
public boolean isIntegralNumber()
- Specified by:
isIntegralNumber
in interfacejakarta.json.stream.JsonParser
-
getInt
public int getInt()
- Specified by:
getInt
in interfacejakarta.json.stream.JsonParser
-
getLong
public long getLong()
- Specified by:
getLong
in interfacejakarta.json.stream.JsonParser
-
getBigDecimal
public BigDecimal getBigDecimal()
- Specified by:
getBigDecimal
in interfacejakarta.json.stream.JsonParser
-
getLocation
public jakarta.json.stream.JsonLocation getLocation()
- Specified by:
getLocation
in interfacejakarta.json.stream.JsonParser
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfacejakarta.json.stream.JsonParser
-
getValue
public T getValue()
- Specified by:
getValue
in interfacejakarta.json.stream.JsonParser
-
-