Package javax.json.stream
Interface JsonParser
-
- All Superinterfaces:
java.lang.AutoCloseable
,java.io.Closeable
public interface JsonParser extends java.io.Closeable
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
JsonParser.Event
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
close()
default JsonArray
getArray()
default java.util.stream.Stream<JsonValue>
getArrayStream()
java.math.BigDecimal
getBigDecimal()
int
getInt()
JsonLocation
getLocation()
long
getLong()
default JsonObject
getObject()
default java.util.stream.Stream<java.util.Map.Entry<java.lang.String,JsonValue>>
getObjectStream()
java.lang.String
getString()
default JsonValue
getValue()
default java.util.stream.Stream<JsonValue>
getValueStream()
boolean
hasNext()
boolean
isIntegralNumber()
JsonParser.Event
next()
default void
skipArray()
default void
skipObject()
-
-
-
Method Detail
-
hasNext
boolean hasNext()
-
next
JsonParser.Event next()
-
getString
java.lang.String getString()
-
isIntegralNumber
boolean isIntegralNumber()
-
getInt
int getInt()
-
getLong
long getLong()
-
getBigDecimal
java.math.BigDecimal getBigDecimal()
-
getLocation
JsonLocation getLocation()
-
close
void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
-
getObject
default JsonObject getObject()
-
getValue
default JsonValue getValue()
-
getArray
default JsonArray getArray()
-
getArrayStream
default java.util.stream.Stream<JsonValue> getArrayStream()
-
getObjectStream
default java.util.stream.Stream<java.util.Map.Entry<java.lang.String,JsonValue>> getObjectStream()
-
getValueStream
default java.util.stream.Stream<JsonValue> getValueStream()
-
skipArray
default void skipArray()
-
skipObject
default void skipObject()
-
-