Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BinaryStreamer

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

Accessors

__srcName

  • get __srcName(): string

type

  • get type(): string

Methods

Protected _chunk

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

_read

  • _read(): Promise<any>

asText

  • asText(): any

chunk

  • chunk(start: number): any

chunkCount

  • chunkCount(): number

chunkToLines

  • chunkToLines(chunk: string | Uint8Array, partialLine: string, isLast: boolean): { lines: string[]; partialLine: string }

dispose

  • dispose(): void

eachChunk

  • eachChunk(callback: (chunk: string | Uint8Array, chunkNo: number, chunkCount: number) => void): void
  • Parameters

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

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

          Returns void

    Returns void

eachChunkOfLines

  • eachChunkOfLines(callback: (chunk: string[], chunkNo: number, chunkCount: number) => void): void
  • Parameters

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

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

          Returns void

    Returns void

isBinary

  • isBinary(): string | false | true

nextChunk

  • nextChunk(): any

nextChunkOfLines

  • nextChunkOfLines(): undefined | string[]

peekLines

  • peekLines(m: number): string[]

read

  • read(): Promise<any>

Generated using TypeDoc