Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • JsonStreamWriter

Implements

Index

Constructors

constructor

Properties

Private stream

Methods

writeAny

  • writeAny(value: any): boolean

writeBoolean

  • writeBoolean(value: boolean): boolean

writeBytes

  • writeBytes(value: Uint8Array): boolean

writeDate

  • writeDate(value: Date): boolean

writeDocument

  • writeDocument<K>(keys: Iterable<K>, handler: function): boolean
  • Type parameters

    • K: string

    Parameters

    • keys: Iterable<K>
    • handler: function
        • (key: K, fieldWriter: Writer<boolean>): boolean
        • Parameters

          • key: K
          • fieldWriter: Writer<boolean>

          Returns boolean

    Returns boolean

writeFloat64

  • writeFloat64(value: number): boolean

writeList

  • writeList(size: number, handler: function): boolean
  • Parameters

    • size: number
    • handler: function
        • (index: number, itemWriter: Writer<boolean>): boolean
        • Parameters

          • index: number
          • itemWriter: Writer<boolean>

          Returns boolean

    Returns boolean

writeMap

  • writeMap(size: number, keyHandler: function, valueHandler: function): boolean
  • Parameters

    • size: number
    • keyHandler: function
        • (index: number, mapKeyWriter: Writer<boolean>): boolean
        • Parameters

          • index: number
          • mapKeyWriter: Writer<boolean>

          Returns boolean

    • valueHandler: function
        • (index: number, mapValueWriter: Writer<boolean>): boolean
        • Parameters

          • index: number
          • mapValueWriter: Writer<boolean>

          Returns boolean

    Returns boolean

writeNull

  • writeNull(): boolean

writeString

  • writeString(value: string): boolean

Generated using TypeDoc