Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Readable
    • SutroStream

Index

Properties

Optional contentType

contentType: string

destroyed

destroyed: boolean

readable

readable: boolean

Readonly readableEncoding

readableEncoding: BufferEncoding

Readonly readableEnded

readableEnded: boolean

Readonly readableFlowing

readableFlowing: boolean

Readonly readableHighWaterMark

readableHighWaterMark: number

Readonly readableLength

readableLength: number

Readonly readableObjectMode

readableObjectMode: boolean

Methods

[Symbol.asyncIterator]

  • [Symbol.asyncIterator](): AsyncIterableIterator<any>
  • Returns AsyncIterableIterator<any>

_destroy

  • _destroy(error: Error, callback: (error?: Error) => void): void
  • Parameters

    • error: Error
    • callback: (error?: Error) => void
        • (error?: Error): void
        • Parameters

          • Optional error: Error

          Returns void

    Returns void

_read

  • _read(size: number): void
  • Parameters

    • size: number

    Returns void

addListener

  • addListener(event: "close", listener: () => void): SutroStream
  • addListener(event: "data", listener: (chunk: any) => void): SutroStream
  • addListener(event: "end", listener: () => void): SutroStream
  • addListener(event: "error", listener: (err: Error) => void): SutroStream
  • addListener(event: "pause", listener: () => void): SutroStream
  • addListener(event: "readable", listener: () => void): SutroStream
  • addListener(event: "resume", listener: () => void): SutroStream
  • addListener(event: string | symbol, listener: (...args: any[]) => void): SutroStream
  • Event emitter The defined events on documents including:

    1. close
    2. data
    3. end
    4. error
    5. pause
    6. readable
    7. resume

    Parameters

    • event: "close"
    • listener: () => void
        • (): void
        • Returns void

    Returns SutroStream

  • Parameters

    • event: "data"
    • listener: (chunk: any) => void
        • (chunk: any): void
        • Parameters

          • chunk: any

          Returns void

    Returns SutroStream

  • Parameters

    • event: "end"
    • listener: () => void
        • (): void
        • Returns void

    Returns SutroStream

  • Parameters

    • event: "error"
    • listener: (err: Error) => void
        • (err: Error): void
        • Parameters

          • err: Error

          Returns void

    Returns SutroStream

  • Parameters

    • event: "pause"
    • listener: () => void
        • (): void
        • Returns void

    Returns SutroStream

  • Parameters

    • event: "readable"
    • listener: () => void
        • (): void
        • Returns void

    Returns SutroStream

  • Parameters

    • event: "resume"
    • listener: () => void
        • (): void
        • Returns void

    Returns SutroStream

  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns SutroStream

destroy

  • destroy(error?: Error): void
  • Parameters

    • Optional error: Error

    Returns void

emit

  • emit(event: "close"): boolean
  • emit(event: "data", chunk: any): boolean
  • emit(event: "end"): boolean
  • emit(event: "error", err: Error): boolean
  • emit(event: "pause"): boolean
  • emit(event: "readable"): boolean
  • emit(event: "resume"): boolean
  • emit(event: string | symbol, ...args: any[]): boolean
  • Parameters

    • event: "close"

    Returns boolean

  • Parameters

    • event: "data"
    • chunk: any

    Returns boolean

  • Parameters

    • event: "end"

    Returns boolean

  • Parameters

    • event: "error"
    • err: Error

    Returns boolean

  • Parameters

    • event: "pause"

    Returns boolean

  • Parameters

    • event: "readable"

    Returns boolean

  • Parameters

    • event: "resume"

    Returns boolean

  • Parameters

    • event: string | symbol
    • Rest ...args: any[]

    Returns boolean

eventNames

  • eventNames(): (string | symbol)[]
  • Returns (string | symbol)[]

getMaxListeners

  • getMaxListeners(): number
  • Returns number

isPaused

  • isPaused(): boolean
  • Returns boolean

listenerCount

  • listenerCount(event: string | symbol): number
  • Parameters

    • event: string | symbol

    Returns number

listeners

  • listeners(event: string | symbol): Function[]
  • Parameters

    • event: string | symbol

    Returns Function[]

off

  • off(event: string | symbol, listener: (...args: any[]) => void): SutroStream
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns SutroStream

on

  • on(event: "close", listener: () => void): SutroStream
  • on(event: "data", listener: (chunk: any) => void): SutroStream
  • on(event: "end", listener: () => void): SutroStream
  • on(event: "error", listener: (err: Error) => void): SutroStream
  • on(event: "pause", listener: () => void): SutroStream
  • on(event: "readable", listener: () => void): SutroStream
  • on(event: "resume", listener: () => void): SutroStream
  • on(event: string | symbol, listener: (...args: any[]) => void): SutroStream
  • Parameters

    • event: "close"
    • listener: () => void
        • (): void
        • Returns void

    Returns SutroStream

  • Parameters

    • event: "data"
    • listener: (chunk: any) => void
        • (chunk: any): void
        • Parameters

          • chunk: any

          Returns void

    Returns SutroStream

  • Parameters

    • event: "end"
    • listener: () => void
        • (): void
        • Returns void

    Returns SutroStream

  • Parameters

    • event: "error"
    • listener: (err: Error) => void
        • (err: Error): void
        • Parameters

          • err: Error

          Returns void

    Returns SutroStream

  • Parameters

    • event: "pause"
    • listener: () => void
        • (): void
        • Returns void

    Returns SutroStream

  • Parameters

    • event: "readable"
    • listener: () => void
        • (): void
        • Returns void

    Returns SutroStream

  • Parameters

    • event: "resume"
    • listener: () => void
        • (): void
        • Returns void

    Returns SutroStream

  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns SutroStream

once

  • once(event: "close", listener: () => void): SutroStream
  • once(event: "data", listener: (chunk: any) => void): SutroStream
  • once(event: "end", listener: () => void): SutroStream
  • once(event: "error", listener: (err: Error) => void): SutroStream
  • once(event: "pause", listener: () => void): SutroStream
  • once(event: "readable", listener: () => void): SutroStream
  • once(event: "resume", listener: () => void): SutroStream
  • once(event: string | symbol, listener: (...args: any[]) => void): SutroStream
  • Parameters

    • event: "close"
    • listener: () => void
        • (): void
        • Returns void

    Returns SutroStream

  • Parameters

    • event: "data"
    • listener: (chunk: any) => void
        • (chunk: any): void
        • Parameters

          • chunk: any

          Returns void

    Returns SutroStream

  • Parameters

    • event: "end"
    • listener: () => void
        • (): void
        • Returns void

    Returns SutroStream

  • Parameters

    • event: "error"
    • listener: (err: Error) => void
        • (err: Error): void
        • Parameters

          • err: Error

          Returns void

    Returns SutroStream

  • Parameters

    • event: "pause"
    • listener: () => void
        • (): void
        • Returns void

    Returns SutroStream

  • Parameters

    • event: "readable"
    • listener: () => void
        • (): void
        • Returns void

    Returns SutroStream

  • Parameters

    • event: "resume"
    • listener: () => void
        • (): void
        • Returns void

    Returns SutroStream

  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns SutroStream

pause

  • Returns SutroStream

pipe

  • pipe<T>(destination: T, options?: { end?: boolean }): T
  • Type parameters

    • T: WritableStream<T>

    Parameters

    • destination: T
    • Optional options: { end?: boolean }
      • Optional end?: boolean

    Returns T

prependListener

  • prependListener(event: "close", listener: () => void): SutroStream
  • prependListener(event: "data", listener: (chunk: any) => void): SutroStream
  • prependListener(event: "end", listener: () => void): SutroStream
  • prependListener(event: "error", listener: (err: Error) => void): SutroStream
  • prependListener(event: "pause", listener: () => void): SutroStream
  • prependListener(event: "readable", listener: () => void): SutroStream
  • prependListener(event: "resume", listener: () => void): SutroStream
  • prependListener(event: string | symbol, listener: (...args: any[]) => void): SutroStream
  • Parameters

    • event: "close"
    • listener: () => void
        • (): void
        • Returns void

    Returns SutroStream

  • Parameters

    • event: "data"
    • listener: (chunk: any) => void
        • (chunk: any): void
        • Parameters

          • chunk: any

          Returns void

    Returns SutroStream

  • Parameters

    • event: "end"
    • listener: () => void
        • (): void
        • Returns void

    Returns SutroStream

  • Parameters

    • event: "error"
    • listener: (err: Error) => void
        • (err: Error): void
        • Parameters

          • err: Error

          Returns void

    Returns SutroStream

  • Parameters

    • event: "pause"
    • listener: () => void
        • (): void
        • Returns void

    Returns SutroStream

  • Parameters

    • event: "readable"
    • listener: () => void
        • (): void
        • Returns void

    Returns SutroStream

  • Parameters

    • event: "resume"
    • listener: () => void
        • (): void
        • Returns void

    Returns SutroStream

  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns SutroStream

prependOnceListener

  • prependOnceListener(event: "close", listener: () => void): SutroStream
  • prependOnceListener(event: "data", listener: (chunk: any) => void): SutroStream
  • prependOnceListener(event: "end", listener: () => void): SutroStream
  • prependOnceListener(event: "error", listener: (err: Error) => void): SutroStream
  • prependOnceListener(event: "pause", listener: () => void): SutroStream
  • prependOnceListener(event: "readable", listener: () => void): SutroStream
  • prependOnceListener(event: "resume", listener: () => void): SutroStream
  • prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): SutroStream
  • Parameters

    • event: "close"
    • listener: () => void
        • (): void
        • Returns void

    Returns SutroStream

  • Parameters

    • event: "data"
    • listener: (chunk: any) => void
        • (chunk: any): void
        • Parameters

          • chunk: any

          Returns void

    Returns SutroStream

  • Parameters

    • event: "end"
    • listener: () => void
        • (): void
        • Returns void

    Returns SutroStream

  • Parameters

    • event: "error"
    • listener: (err: Error) => void
        • (err: Error): void
        • Parameters

          • err: Error

          Returns void

    Returns SutroStream

  • Parameters

    • event: "pause"
    • listener: () => void
        • (): void
        • Returns void

    Returns SutroStream

  • Parameters

    • event: "readable"
    • listener: () => void
        • (): void
        • Returns void

    Returns SutroStream

  • Parameters

    • event: "resume"
    • listener: () => void
        • (): void
        • Returns void

    Returns SutroStream

  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns SutroStream

push

  • push(chunk: any, encoding?: BufferEncoding): boolean
  • Parameters

    • chunk: any
    • Optional encoding: BufferEncoding

    Returns boolean

rawListeners

  • rawListeners(event: string | symbol): Function[]
  • Parameters

    • event: string | symbol

    Returns Function[]

read

  • read(size?: number): any
  • Parameters

    • Optional size: number

    Returns any

removeAllListeners

  • removeAllListeners(event?: string | symbol): SutroStream
  • Parameters

    • Optional event: string | symbol

    Returns SutroStream

removeListener

  • removeListener(event: "close", listener: () => void): SutroStream
  • removeListener(event: "data", listener: (chunk: any) => void): SutroStream
  • removeListener(event: "end", listener: () => void): SutroStream
  • removeListener(event: "error", listener: (err: Error) => void): SutroStream
  • removeListener(event: "pause", listener: () => void): SutroStream
  • removeListener(event: "readable", listener: () => void): SutroStream
  • removeListener(event: "resume", listener: () => void): SutroStream
  • removeListener(event: string | symbol, listener: (...args: any[]) => void): SutroStream
  • Parameters

    • event: "close"
    • listener: () => void
        • (): void
        • Returns void

    Returns SutroStream

  • Parameters

    • event: "data"
    • listener: (chunk: any) => void
        • (chunk: any): void
        • Parameters

          • chunk: any

          Returns void

    Returns SutroStream

  • Parameters

    • event: "end"
    • listener: () => void
        • (): void
        • Returns void

    Returns SutroStream

  • Parameters

    • event: "error"
    • listener: (err: Error) => void
        • (err: Error): void
        • Parameters

          • err: Error

          Returns void

    Returns SutroStream

  • Parameters

    • event: "pause"
    • listener: () => void
        • (): void
        • Returns void

    Returns SutroStream

  • Parameters

    • event: "readable"
    • listener: () => void
        • (): void
        • Returns void

    Returns SutroStream

  • Parameters

    • event: "resume"
    • listener: () => void
        • (): void
        • Returns void

    Returns SutroStream

  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns SutroStream

resume

  • Returns SutroStream

setEncoding

  • Parameters

    • encoding: BufferEncoding

    Returns SutroStream

setMaxListeners

  • Parameters

    • n: number

    Returns SutroStream

unpipe

  • Parameters

    • Optional destination: WritableStream

    Returns SutroStream

unshift

  • unshift(chunk: any, encoding?: BufferEncoding): void
  • Parameters

    • chunk: any
    • Optional encoding: BufferEncoding

    Returns void

wrap

  • Parameters

    • oldStream: ReadableStream

    Returns SutroStream

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Inherited property

Generated using TypeDoc