Class B2JsonWriter


  • public class B2JsonWriter
    extends java.lang.Object
    Writes out JSON tokens, supports pretty and compact style output.
    • Constructor Detail

      • B2JsonWriter

        public B2JsonWriter​(java.io.OutputStream out,
                            B2JsonOptions options)
    • Method Detail

      • writeText

        public void writeText​(java.lang.String text)
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • setAllowNewlines

        public void setAllowNewlines​(boolean allowNewlines)
      • startObject

        public void startObject()
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • writeObjectFieldNameAndColon

        public void writeObjectFieldNameAndColon​(java.lang.String name)
                                          throws java.io.IOException
        Throws:
        java.io.IOException
      • writeFieldNameValueSeparator

        public void writeFieldNameValueSeparator()
                                          throws java.io.IOException
        Throws:
        java.io.IOException
      • startObjectFieldName

        public void startObjectFieldName()
                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • finishObject

        public void finishObject()
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • startArray

        public void startArray()
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • startArrayValue

        public void startArrayValue()
                             throws java.io.IOException
        Throws:
        java.io.IOException
      • finishArray

        public void finishArray()
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • writeString

        public void writeString​(java.lang.CharSequence value)
                         throws java.io.IOException
        Throws:
        java.io.IOException