c

ujson

BaseCharRenderer

class BaseCharRenderer[T <: Output] extends JsVisitor[T, T]

A specialized JSON renderer that can render Chars (Chars or Bytes) directly to a java.io.Writer or java.io.OutputStream

Note that we use an internal CharBuilder to buffer the output internally before sending it to out in batches. This lets us benefit from the high performance and minimal overhead of CharBuilder in the fast path of pushing characters, and avoid the synchronization/polymorphism overhead of out on the fast path. Most outs would also have performance benefits from receiving data in batches, rather than elem by elem.

Linear Supertypes
JsVisitor[T, T], Visitor[T, T], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BaseCharRenderer
  2. JsVisitor
  3. Visitor
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new BaseCharRenderer(out: T, indent: Int = -1, escapeUnicode: Boolean = false)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  9. def flushBuffer(): Unit
  10. def flushCharBuilder(): Unit
  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. def map[Z](f: (T) => Z): Visitor[T, Z]
    Definition Classes
    Visitor
  15. def mapNulls[Z](f: (T) => Z): Visitor[T, Z]
    Definition Classes
    Visitor
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. final def renderIndent(): Unit
  20. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  21. def toString(): String
    Definition Classes
    AnyRef → Any
  22. def visitArray(length: Int, index: Int): ArrVisitor[T, T] { def subVisitor: ujson.BaseCharRenderer[T] }
    Definition Classes
    BaseCharRenderer → Visitor
  23. def visitBinary(bytes: Array[Byte], offset: Int, len: Int, index: Int): T
    Definition Classes
    JsVisitor → Visitor
  24. def visitChar(s: Char, index: Int): T
    Definition Classes
    JsVisitor → Visitor
  25. def visitExt(tag: Byte, bytes: Array[Byte], offset: Int, len: Int, index: Int): T
    Definition Classes
    JsVisitor → Visitor
  26. def visitFalse(index: Int): T
    Definition Classes
    BaseCharRenderer → Visitor
  27. def visitFloat32(d: Float, index: Int): T
    Definition Classes
    BaseCharRendererJsVisitor → Visitor
  28. def visitFloat64(d: Double, index: Int): T
    Definition Classes
    BaseCharRendererJsVisitor → Visitor
  29. def visitFloat64String(s: String, index: Int): T
    Definition Classes
    JsVisitor → Visitor
  30. def visitFloat64StringParts(s: CharSequence, decIndex: Int, expIndex: Int, index: Int): T
    Definition Classes
    BaseCharRenderer → Visitor
  31. def visitFloat64StringParts(s: CharSequence, decIndex: Int, expIndex: Int): T
    Definition Classes
    JsVisitor
  32. def visitInt32(i: Int, index: Int): T
    Definition Classes
    JsVisitor → Visitor
  33. def visitInt64(i: Long, index: Int): T
    Definition Classes
    JsVisitor → Visitor
  34. def visitNonNullString(s: CharSequence, index: Int): T
  35. def visitNull(index: Int): T
    Definition Classes
    BaseCharRenderer → Visitor
  36. def visitObject(length: Int, index: Int): ObjVisitor[T, T] { ... /* 2 definitions in type refinement */ }
    Definition Classes
    BaseCharRenderer → Visitor
  37. def visitString(s: CharSequence, index: Int): T
    Definition Classes
    BaseCharRenderer → Visitor
  38. def visitTrue(index: Int): T
    Definition Classes
    BaseCharRenderer → Visitor
  39. def visitUInt64(i: Long, index: Int): T
    Definition Classes
    JsVisitor → Visitor
  40. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  41. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  42. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from JsVisitor[T, T]

Inherited from Visitor[T, T]

Inherited from AnyRef

Inherited from Any

Ungrouped