API / geotoolkit / util / stream / BinaryStream / BinaryStream
stream.BinaryStream.BinaryStream
Defines representation of memory binary stream
Constructors
Methods
▸ close(): BinaryStream
Close stream
Throws
if size of stream is too big
this
▸ dispose(): void
Dispose
void
▸ getClassName(): string
string
▸ getContent(): Uint8Array
Returns content
Uint8Array
▸ getPosition(): number
Gets current position
number
position
▸ out(byte, offset?, length?): number
Put value to stream
| Name | Type | Description |
|---|---|---|
byte | number | number[] | Uint8Array | to be saved |
Optional offset | number | offset |
Optional length | number | length |
number
▸ save(name?, save?): BinaryStream
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 |
this
▸ setSaveOptions(options?): BinaryStream
Set saving options
| Name | Type | Description |
|---|---|---|
Optional options | Options | options |
this
▸ Static getClassName(): string
string