Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface InputStream

Stateful stream primitives. Implement over a string or input stream. Consumption via the read method is irreversible.

Hierarchy

  • InputStream

Implemented by

Index

Methods

Methods

exhausted

  • exhausted(): boolean

read

  • read(n: number): string
  • Consume at most n characters. Return the empty string if the stream is exhausted.

    Parameters

    • n: number

      number of characters to read.

    Returns string

Generated using TypeDoc