API / geotoolkit / util / stream / StringStream / StringStream
stream.StringStream.StringStream
Defines representation memory string stream
Constructors
Methods
Constructors
• new StringStream(features?)
| Name | Type | Description |
|---|---|---|
Optional features | string | optional. A comma-separated list of items, no whitespaces, see https://www.w3schools.com/jsref/met_win_open.asp |
Methods
▸ close(): StringStream
Close stream
▸ dispose(): void
Dispose
void
▸ getClassName(): string
string
▸ getContent(): Uint8Array
Gets stream content
Uint8Array
▸ getWindowFeatures(): string
Returns window features
string
▸ out(str): number
write the data into the file
| Name | Type | Description |
|---|---|---|
str | string | string to be saved |
number
offset the offset
▸ save(name?, save?): void
Save stream
| Name | Type | Description |
|---|---|---|
Optional name | string | the name of the file to be created |
Optional save | boolean | flag to save the stream directly to file or open dialog |
void
▸ setSaveOptions(options?): StringStream
Set saving options
| Name | Type | Description |
|---|---|---|
Optional options | SavingOptions | options |
this
▸ setWindowFeatures(features): StringStream
Sets window features
| Name | Type | Description |
|---|---|---|
features | string | a comma-separated list of items, no whitespaces, see https://www.w3schools.com/jsref/met_win_open.asp |
this
▸ Static getClassName(): string
string
▸ Static save(options, content): void
Save content
| Name | Type | Description |
|---|---|---|
options | SavingOptions | options |
content | string | content |
void