Skip to content

API / geotoolkit / util / stream / TextStream / TextStream

Class: TextStream

stream.TextStream.TextStream

Defines interface of stream to write

Interface

Implements

Table of contents

Constructors
  • [new TextStream(options)](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit.util.stream.textstream.textstream.md#new textstream(options))
Methods

Contents

Constructors

new TextStream(options)

• new TextStream(options?)

Parameters

Name Type
Optional optionsOptions
Methods

close

▸ close(): TextStream

Close stream

Returns

TextStream

Implementation of

IWritable.close


dispose

▸ dispose(): void

Dispose

Returns

void

Implementation of

IWritable.dispose


getClassName

▸ getClassName(): string

Returns

string


getContent

▸ getContent(): string | string[]

Returns content

Returns

string | string[]

Implementation of

IWritable.getContent


out

▸ out(data): number

Parameters

Name Type Description
datastring | string[]data to be written

Returns

number

offset

Implementation of

IWritable.out


save

▸ save(name?, save?): void

Parameters

Name Type Description
Optional namestringthe name of the file to be created
Optional savebooleanflag to save the stream directly to file or open dialog

Returns

void

Implementation of

IWritable.save


getClassName

▸ Static getClassName(): string

Returns

string