Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NetworkStreamer

Hierarchy

Index

Constructors

constructor

Properties

Protected __partialLine

__partialLine: string = ""

Protected __pointer

__pointer: number = 0

binary

binary: boolean

chunkSize

chunkSize: number = 1024 * 1024 * 10

compressed

compressed: string | false

data

data: any

json

json: boolean

newline

newline: string = ""

src

src: any

xml

xml: boolean

Methods

Protected _chunk

  • _chunk(start: number, end: number): any

_read

  • _read(): Promise<Object>

asText

  • asText(): any

chunk

  • chunk(start: number): any

chunkCount

  • chunkCount(): number

chunkToLines

  • chunkToLines(chunk: string | Uint8Array, partialLine: string, isLast: boolean): object

dispose

  • dispose(): void

eachChunk

  • eachChunk(callback: function): void
  • Parameters

    • callback: function
        • (chunk: string | Uint8Array, chunkNo: number, chunkCount: number): void
        • Parameters

          • chunk: string | Uint8Array
          • chunkNo: number
          • chunkCount: number

          Returns void

    Returns void

eachChunkOfLines

  • eachChunkOfLines(callback: function): void
  • Parameters

    • callback: function
        • (chunk: string[], chunkNo: number, chunkCount: number): void
        • Parameters

          • chunk: string[]
          • chunkNo: number
          • chunkCount: number

          Returns void

    Returns void

isBinary

  • isBinary(): string | true | false

nextChunk

  • nextChunk(): any

nextChunkOfLines

  • nextChunkOfLines(): undefined | string[]

peekLines

  • peekLines(m: number): string[]

read

  • read(): Promise<any>

Generated using TypeDoc