File

projects/wms-framework/src/lib/baseframework/StringReader.ts

Description

Stores a string and exposes a stream API for it.

Extends

TextReader

Index

Properties
Methods

Constructor

constructor(text: string)

Creates an instance of StringReader.

Parameters :
Name Type Optional
text string No

Properties

Public text
Type : string

Methods

Dispose
Dispose()
Inherited from TextReader
Defined in TextReader:34

Dispose this text reader.

Returns : void
ReadBlock
ReadBlock(buffer: any, index: number, count: number)
Inherited from TextReader
Defined in TextReader:48

Reads count number of characters from this reader and stores them on buffer, begining at index position.

Parameters :
Name Type Optional Description
buffer any No

Buffer to store the readed characters.

index number No

Position on buffer where to put the readed characters.

count number No

Number of characters to read.

Returns : number

{number} Number of readed caracters. May be less or equal to count.

import { TextReader } from './TextReader';

/**
 * Stores a string and exposes a stream API for it.
 *
 * @class StringReader
 * @wType System.IO.StringReader
 * @wNetSupport
 */
export class StringReader extends TextReader {
  /**
   * Creates an instance of StringReader.
   *
   * @param {string} text
   * @memberof StringReader
   */
  constructor(public text: string) {
    super();
  }
}

result-matching ""

    No results matching ""