Package org.apache.johnzon.mapper.jsonp
Class RewindableJsonParser
- java.lang.Object
-
- org.apache.johnzon.mapper.jsonp.RewindableJsonParser
-
- All Implemented Interfaces:
jakarta.json.stream.JsonParser
,Closeable
,AutoCloseable
public class RewindableJsonParser extends Object implements jakarta.json.stream.JsonParser
-
-
Constructor Summary
Constructors Constructor Description RewindableJsonParser(jakarta.json.stream.JsonParser delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
jakarta.json.JsonArray
getArray()
Stream<jakarta.json.JsonValue>
getArrayStream()
BigDecimal
getBigDecimal()
int
getInt()
jakarta.json.stream.JsonParser.Event
getLast()
jakarta.json.stream.JsonLocation
getLocation()
long
getLong()
jakarta.json.JsonObject
getObject()
Stream<Map.Entry<String,jakarta.json.JsonValue>>
getObjectStream()
String
getString()
jakarta.json.JsonValue
getValue()
Stream<jakarta.json.JsonValue>
getValueStream()
boolean
hasNext()
boolean
isIntegralNumber()
jakarta.json.stream.JsonParser.Event
next()
void
skipArray()
void
skipObject()
-
-
-
Method Detail
-
getLast
public jakarta.json.stream.JsonParser.Event getLast()
-
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
-
getObject
public jakarta.json.JsonObject getObject()
- Specified by:
getObject
in interfacejakarta.json.stream.JsonParser
-
getValue
public jakarta.json.JsonValue getValue()
- Specified by:
getValue
in interfacejakarta.json.stream.JsonParser
-
getArray
public jakarta.json.JsonArray getArray()
- Specified by:
getArray
in interfacejakarta.json.stream.JsonParser
-
getArrayStream
public Stream<jakarta.json.JsonValue> getArrayStream()
- Specified by:
getArrayStream
in interfacejakarta.json.stream.JsonParser
-
getObjectStream
public Stream<Map.Entry<String,jakarta.json.JsonValue>> getObjectStream()
- Specified by:
getObjectStream
in interfacejakarta.json.stream.JsonParser
-
getValueStream
public Stream<jakarta.json.JsonValue> getValueStream()
- Specified by:
getValueStream
in interfacejakarta.json.stream.JsonParser
-
skipArray
public void skipArray()
- Specified by:
skipArray
in interfacejakarta.json.stream.JsonParser
-
skipObject
public void skipObject()
- Specified by:
skipObject
in interfacejakarta.json.stream.JsonParser
-
-