Package org.nustaq.kson
Class KsonDeserializer
java.lang.Object
org.nustaq.kson.KsonDeserializer
parses kson format as well as json. somewhat quick&dirty, anyway targeted for easy mapping of config files/data and
to connect kontraktor's actors to slow-end tech like webservices & jscript front ends.
Note: this is pretty fuzzy code (typeguessing, best effort parsing ..)
-
Field Summary
Modifier and TypeFieldDescriptionstatic boolean
protected KsonCharInput
protected KsonTypeMapper
protected Stack<org.nustaq.kson.KsonDeserializer.ParseStep>
protected boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
isFromStringValue
(Class type) protected boolean
isIdPart
(int ch) protected boolean
isIdStart
(int ch) boolean
protected String
readId()
protected List
protected List
protected long
readLong()
protected String
readNums()
readObject
(Class expect, Class genericKeyType, Class genericValueType) protected List
readObjectFields
(FSTClazzInfo targetClz) protected String
readString
(boolean quoted) protected Object
protected String
setArgTypesRessolver
(KsonArgTypesResolver argTypesRessolver) void
skipWS()
supportJSon
(boolean supportJSon)
-
Field Details
-
DEBUG_STACK
public static boolean DEBUG_STACK -
in
-
mapper
-
stack
-
supportJSon
protected boolean supportJSon
-
-
Constructor Details
-
KsonDeserializer
-
-
Method Details
-
isSupportJSon
public boolean isSupportJSon() -
supportJSon
-
skipWS
public void skipWS() -
readObject
public Object readObject(Class expect, Class genericKeyType, Class genericValueType) throws Exception - Throws:
Exception
-
scanJSonType
-
readObjectFields
- Throws:
Exception
-
getArgTypesRessolver
-
setArgTypesRessolver
-
readList
- Throws:
Exception
-
readList
- Throws:
Exception
-
readValue
protected Object readValue(Class expected, Class genericKeyType, Class genericValueType) throws Exception - Throws:
Exception
-
isFromStringValue
-
readLong
protected long readLong() -
readString
-
readNums
-
readId
-
isIdPart
protected boolean isIdPart(int ch) -
isIdStart
protected boolean isIdStart(int ch)
-