Class

ujson

BaseByteRenderer

Related Doc: package ujson

Permalink

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 elem by elem.

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. All

Instance Constructors

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

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. def flushBuffer(): Unit

    Permalink
  10. def flushByteBuilder(): Unit

    Permalink
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. def map[Z](f: (T) ⇒ Z): Visitor[T, Z]

    Permalink
    Definition Classes
    Visitor
  15. def mapNulls[Z](f: (T) ⇒ Z): Visitor[T, Z]

    Permalink
    Definition Classes
    Visitor
  16. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def renderIndent(): Unit

    Permalink
  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  21. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  22. def visitArray(length: Int, index: Int): ArrVisitor[T, T] { def subVisitor: ujson.BaseByteRenderer[T] }

    Permalink
    Definition Classes
    BaseByteRenderer → Visitor
  23. def visitBinary(bytes: Array[Byte], offset: Int, len: Int, index: Int): T

    Permalink
    Definition Classes
    JsVisitor → Visitor
  24. def visitChar(s: Char, index: Int): T

    Permalink
    Definition Classes
    JsVisitor → Visitor
  25. def visitExt(tag: Byte, bytes: Array[Byte], offset: Int, len: Int, index: Int): T

    Permalink
    Definition Classes
    JsVisitor → Visitor
  26. def visitFalse(index: Int): T

    Permalink
    Definition Classes
    BaseByteRenderer → Visitor
  27. def visitFloat32(d: Float, index: Int): T

    Permalink
    Definition Classes
    JsVisitor → Visitor
  28. def visitFloat64(d: Double, index: Int): T

    Permalink
    Definition Classes
    BaseByteRendererJsVisitor → Visitor
  29. def visitFloat64String(s: String, index: Int): T

    Permalink
    Definition Classes
    JsVisitor → Visitor
  30. def visitFloat64StringParts(s: CharSequence, decIndex: Int, expIndex: Int, index: Int): T

    Permalink
    Definition Classes
    BaseByteRenderer → Visitor
  31. def visitFloat64StringParts(s: CharSequence, decIndex: Int, expIndex: Int): T

    Permalink
    Definition Classes
    JsVisitor
  32. def visitInt32(i: Int, index: Int): T

    Permalink
    Definition Classes
    JsVisitor → Visitor
  33. def visitInt64(i: Long, index: Int): T

    Permalink
    Definition Classes
    JsVisitor → Visitor
  34. def visitNonNullString(s: CharSequence, index: Int): T

    Permalink
  35. def visitNull(index: Int): T

    Permalink
    Definition Classes
    BaseByteRenderer → Visitor
  36. def visitObject(length: Int, index: Int): ObjVisitor[T, T] { ... /* 2 definitions in type refinement */ }

    Permalink
    Definition Classes
    BaseByteRenderer → Visitor
  37. def visitString(s: CharSequence, index: Int): T

    Permalink
    Definition Classes
    BaseByteRenderer → Visitor
  38. def visitTrue(index: Int): T

    Permalink
    Definition Classes
    BaseByteRenderer → Visitor
  39. def visitUInt64(i: Long, index: Int): T

    Permalink
    Definition Classes
    JsVisitor → Visitor
  40. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from JsVisitor[T, T]

Inherited from Visitor[T, T]

Inherited from AnyRef

Inherited from Any

Ungrouped