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

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

Note that we use an internal ByteBuilder to buffer the output internally before sending it to out in batches. This lets us benefit from the high performance and minimal overhead of ByteBuilder 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 byte by byte.

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

Instance Constructors

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

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated @Deprecated
    Deprecated

Inherited from JsVisitor[T, T]

Inherited from Visitor[T, T]

Inherited from AnyRef

Inherited from Any

Ungrouped