Package org.nustaq.kson
Class JSonSerializer
java.lang.Object
org.nustaq.kson.KsonSerializer
org.nustaq.kson.JSonSerializer
Created by ruedi on 12.08.2014.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionJSonSerializer
(KsonCharOutput out, KsonTypeMapper mapper, FSTConfiguration conf) -
Method Summary
Modifier and TypeMethodDescriptionboolean
protected void
void
setClazzAttributeName
(String clazzAttributeName) void
setQuoteKeyNames
(boolean quoteKeyNames) protected boolean
shouldQuote
(String string) protected void
writeClazzTag
(Class expectedClass, Object o) determines classname tagging.protected void
called when writing a key of an key:value inside an object or mapprotected void
protected void
protected void
Methods inherited from class org.nustaq.kson.KsonSerializer
isWriteNull, setWriteNull, writeIndent, writeln, writeObject, writeObject, writeObjectInternal, writeString
-
Field Details
-
clazzAttributeName
-
quoteKeyNames
protected boolean quoteKeyNames
-
-
Constructor Details
-
JSonSerializer
-
-
Method Details
-
isQuoteKeyNames
public boolean isQuoteKeyNames() -
setQuoteKeyNames
public void setQuoteKeyNames(boolean quoteKeyNames) -
getClazzAttributeName
-
setClazzAttributeName
-
shouldQuote
- Overrides:
shouldQuote
in classKsonSerializer
-
removeLastListSep
protected void removeLastListSep()- Overrides:
removeLastListSep
in classKsonSerializer
-
writeListEnd
protected void writeListEnd()- Overrides:
writeListEnd
in classKsonSerializer
-
writeListStart
protected void writeListStart()- Overrides:
writeListStart
in classKsonSerializer
-
writeListSep
protected void writeListSep()- Overrides:
writeListSep
in classKsonSerializer
-
writeClazzTag
Description copied from class:KsonSerializer
determines classname tagging. Overrifing can enforce class tags always or (JSon) write as special attribute- Overrides:
writeClazzTag
in classKsonSerializer
-
writeKey
Description copied from class:KsonSerializer
called when writing a key of an key:value inside an object or map- Overrides:
writeKey
in classKsonSerializer
-
noTypeTags
-