Class KsonSerializer

java.lang.Object
org.nustaq.kson.KsonSerializer
Direct Known Subclasses:
JSonSerializer

public class KsonSerializer extends Object

Date: 20.12.13 Time: 12:03

Created by ruedi on 07.08.2014.

  • Field Details

  • Constructor Details

  • Method Details

    • writeObject

      public void writeObject(Object o) throws Exception
      Throws:
      Exception
    • writeObjectInternal

      protected void writeObjectInternal(Class expectedClass, Class expectedValueClass, Object o, int indent) throws Exception
      Throws:
      Exception
    • writeKey

      protected void writeKey(String name)
      called when writing a key of an key:value inside an object or map
      Parameters:
      name -
    • writeClazzTag

      protected void writeClazzTag(Class expectedClass, Object o)
      determines classname tagging. Overrifing can enforce class tags always or (JSon) write as special attribute
      Parameters:
      expectedClass -
      o -
    • writeListEnd

      protected void writeListEnd()
    • writeListStart

      protected void writeListStart()
    • removeLastListSep

      protected void removeLastListSep()
    • writeListSep

      protected void writeListSep()
    • writeln

      protected void writeln()
    • writeString

      public void writeString(String string)
    • shouldQuote

      protected boolean shouldQuote(String string)
    • writeIndent

      protected void writeIndent(int indent)
    • isWriteNull

      public boolean isWriteNull()
    • setWriteNull

      public void setWriteNull(boolean writeNull)
    • writeObject

      public void writeObject(Object o, Class aClass) throws Exception
      Throws:
      Exception