public class JsonTokener extends Tokener
| Modifier and Type | Field and Description |
|---|---|
static char |
ENDARRAY |
static char |
ENDENTITY |
static java.lang.String |
PROPS
The Constant JSON_PROPS.
|
static char |
STARTARRAY |
static char |
STARTENTITY |
static java.lang.String |
STOPCHARS |
SPACE| Constructor and Description |
|---|
JsonTokener() |
| Modifier and Type | Method and Description |
|---|---|
Entity |
createLink(Entity parent,
java.lang.String property,
java.lang.String className,
java.lang.String id) |
java.lang.Object |
decoding(JsonObject jsonObject,
MapEntity map)
Read json.
|
Entity |
newInstance() |
EntityList |
newInstanceList() |
java.lang.Object |
nextValue(BaseItem creator,
boolean allowQuote,
boolean allowDuppleMarks,
char stopChar)
Get the NextVlaue
|
JsonObject |
parseEntity(JsonObject parent,
SimpleKeyValueList<?,?> newValue) |
void |
parseToEntity(Entity entity) |
void |
parseToEntity(EntityList entityList) |
JsonObject |
parseToEntity(JsonObject parent,
SimpleKeyValueList<?,?> newValue)
Cross compiling
|
JsonTokener |
withMap(IdMap map) |
array, checkValues, encode, getByte, getChar, getCreator, getCreatorClass, getCurrentChar, getId, getKey, getMap, getObject, getProperties, getString, getStringList, isChild, isEmpty, isEnd, isError, length, nextClean, nextString, nextString, nextToken, notify, position, remaining, skip, skip, skipChar, skipTo, skipTo, splitStrings, transformValue, withBuffer, withBuffer, withLookAHead, withLookAHeadpublic static final java.lang.String PROPS
public static final java.lang.String STOPCHARS
public static final char STARTARRAY
public static final char ENDARRAY
public static final char STARTENTITY
public static final char ENDENTITY
public void parseToEntity(EntityList entityList)
parseToEntity in class Tokenerpublic java.lang.Object nextValue(BaseItem creator, boolean allowQuote, boolean allowDuppleMarks, char stopChar)
BufferItemnextValue in interface BufferItemnextValue in class Tokenercreator - Creator for creating Child ItemallowQuote - Is it allow Quote in NextValueallowDuppleMarks - Is allow DuppleMarksstopChar - CurrentCharpublic void parseToEntity(Entity entity)
parseToEntity in class Tokenerpublic JsonObject parseEntity(JsonObject parent, SimpleKeyValueList<?,?> newValue)
public JsonObject parseToEntity(JsonObject parent, SimpleKeyValueList<?,?> newValue)
parent - the parent ElementnewValue - the newValuepublic java.lang.Object decoding(JsonObject jsonObject, MapEntity map)
jsonObject - the json objectmap - decoding runtime valuespublic JsonTokener withMap(IdMap map)
public Entity newInstance()
newInstance in class Tokenerpublic EntityList newInstanceList()
newInstanceList in class Tokenerpublic Entity createLink(Entity parent, java.lang.String property, java.lang.String className, java.lang.String id)
createLink in class Tokener