Options
All
  • Public
  • Public/Protected
  • All
Menu

Simple implementation of InputStream, backed by a string held in memory.

Hierarchy

  • StringInputStream

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

  • Create a new string-backed stream

    Parameters

    • content: string

      string

    • Default value initialOffset: number = 0

      initial offset. If supplied this pretends to the left offset of the string. This enables us to match within matches

    Returns StringInputStream

Properties

content

content: string

string

Private initialOffset

initialOffset: number

initial offset. If supplied this pretends to the left offset of the string. This enables us to match within matches

offset

offset: number = 0

Methods

exhausted

  • exhausted(): boolean

read

  • read(n: number): string

Generated using TypeDoc