public abstract class JsonStreamContext extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getCurrentIndex() |
abstract String |
getCurrentName()
Method for accessing name associated with the current location.
|
int |
getEntryCount() |
abstract JsonStreamContext |
getParent()
Accessor for finding parent context of this context; will
return null for root context.
|
String |
getTypeDesc()
Method for accessing simple type description of current context;
either ROOT (for root-level values), OBJECT (for field names and
values of JSON Objects) or ARRAY (for values of JSON Arrays)
|
boolean |
inArray()
Method that returns true if this context is an Array context;
that is, content is being read from or written to a Json Array.
|
boolean |
inObject()
Method that returns true if this context is an Object context;
that is, content is being read from or written to a Json Object.
|
boolean |
inRoot()
Method that returns true if this context is a Root context;
that is, content is being read from or written to without
enclosing array or object structure.
|
public abstract JsonStreamContext getParent()
public final boolean inArray()
public final boolean inRoot()
public final boolean inObject()
public final String getTypeDesc()
public final int getEntryCount()
public final int getCurrentIndex()
public abstract String getCurrentName()
FIELD_NAME and value events that directly
follow field names; null for root level and array values.Copyright © 2002–2019 The MyMMSCs Software Foundation. All rights reserved.